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§
Source§impl<T: Sized + Sync> Deref for ReadGuard<'_, T>
This Deref trait allows a thread to use T from a ReadGuard.
ReadGuard can only be dereferenced into an immutable reference.
impl<T: Sized + Sync> Deref for ReadGuard<'_, T>
This Deref trait allows a thread to use T from a ReadGuard.
ReadGuard can only be dereferenced into an immutable reference.
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> UnsafeUnpin 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