The equivalent in Rust is RwLock: https://doc.rust-lang.org/std/sync/struct.RwLock.html
The more general idea for this is readers-writer lock: https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock