I have some kind of shared state that's supposed to be observed by borrowers but only the owner should mutate it. I was wondering if Rust has a standard way of doing that. Currently I'm using RefCell but that means I can mutate the state unintentionally.
I set this as a reference, and I presume the single writer would hold the actual ownership. You could share it evenly with Rc if that works better for you.