pub struct ReadGuard<'a, T: Sized + Sync + 'a> { /* private fields */ }Expand description
A read-guard that can be used to read the underlying data structure. Writes on the data structure will be blocked as long as one of these is lying around.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for ReadGuard<'a, T>
impl<'a, T> !RefUnwindSafe for ReadGuard<'a, T>
impl<'a, T> Send for ReadGuard<'a, T>
impl<'a, T> Sync for ReadGuard<'a, T>
impl<'a, T> Unpin for ReadGuard<'a, T>
impl<'a, T> !UnwindSafe for ReadGuard<'a, 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