pub struct WriteGuard<'a, T: Sized + Sync + 'a> { /* private fields */ }Expand description
A write-guard that can be used to write to the underlying data structure. All reads will be blocked until this is dropped.
Trait Implementations§
Source§impl<T: Sized + Sync> Deref for WriteGuard<'_, T>
This Deref trait allows a thread to use T from a WriteGuard.
This allows us to dereference an immutable reference.
impl<T: Sized + Sync> Deref for WriteGuard<'_, T>
This Deref trait allows a thread to use T from a WriteGuard.
This allows us to dereference an immutable reference.
Auto Trait Implementations§
impl<'a, T> Freeze for WriteGuard<'a, T>
impl<'a, T> !RefUnwindSafe for WriteGuard<'a, T>
impl<'a, T> Send for WriteGuard<'a, T>
impl<'a, T> Sync for WriteGuard<'a, T>
impl<'a, T> Unpin for WriteGuard<'a, T>
impl<'a, T> !UnwindSafe for WriteGuard<'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