pub struct ReadLock { /* private fields */ }Expand description
Read claim held without a reference to the value.
Useful for keeping a value readable across code that does not touch it. Releases the claim on drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadLock
impl RefUnwindSafe for ReadLock
impl Send for ReadLock
impl Sync for ReadLock
impl Unpin for ReadLock
impl UnsafeUnpin for ReadLock
impl UnwindSafe for ReadLock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more