I have an Arc<RwLock<Foo>>.
Is there a way to make something out of this, on which the RwLock's write() does not exist? i.e. Is there some form of RLock which I can make from an RwLock.
Use case: I have a Foo. More than one part of my code needs to mutate the Foo (hence the RwLock), but the majority of my code must only ever have read-only access to the Foo.
Is there a way of achieving this? Or is there a way of doing this without RwLock?