pub struct ReadGuard<T> { /* private fields */ }
Expand description
Allows read-only access to the data contained within a lock.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ReadGuard<T>
impl<T> !RefUnwindSafe for ReadGuard<T>
impl<T> Send for ReadGuard<T>where
T: Send,
impl<T> Sync for ReadGuard<T>where
T: Send,
impl<T> Unpin for ReadGuard<T>
impl<T> !UnwindSafe for ReadGuard<T>
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