title: When or why should I use a Mutex over an RwLock?
body: <p>When I read the documentations of <a href="https://doc.rust-lang.org/std/sync/struct.Mutex.html" rel="nofollow noreferrer"><code>Mutex</code></a> and <a href="https://doc.rust-lang.org/std/sync/struct.RwLock.html" rel="nofollow noreferrer"><code>RwLock</code></a>, the difference I see is the following:</p>
  <ul>
  <li><code>Mutex</code> can have only one reader or writer at a time,</li>
  <li><code>RwLock</code> can have one writer or multiple readers at a time.</li>
  </ul>
  <p>When you put it that way, <code>RwLock</code> seems always better (less limited) than <code>Mutex</code>, why would I use it, then?</p>