pub struct RwLockWriteGuard<'lock, T>where
T: ?Sized,{ /* private fields */ }
Expand description
RAII structure used to release the exclusive write access of a RwLock
when
dropped.
The data protected by the RwLock
can be accessed through this guard via
its Deref
and DerefMut
implementations.
This guard can be held across any .await
point, as it implements
Send
.
This structure is created by the write
and try_write
methods on
RwLock
.
Trait Implementations§
Source§impl<T> Debug for RwLockWriteGuard<'_, T>
impl<T> Debug for RwLockWriteGuard<'_, T>
Source§impl<T> Deref for RwLockWriteGuard<'_, T>where
T: ?Sized,
impl<T> Deref for RwLockWriteGuard<'_, T>where
T: ?Sized,
Source§impl<T> DerefMut for RwLockWriteGuard<'_, T>where
T: ?Sized,
impl<T> DerefMut for RwLockWriteGuard<'_, T>where
T: ?Sized,
impl<T> Send for RwLockWriteGuard<'_, T>
impl<T> Sync for RwLockWriteGuard<'_, T>
Auto Trait Implementations§
impl<'lock, T> Freeze for RwLockWriteGuard<'lock, T>where
T: ?Sized,
impl<'lock, T> !RefUnwindSafe for RwLockWriteGuard<'lock, T>
impl<'lock, T> Unpin for RwLockWriteGuard<'lock, T>where
T: ?Sized,
impl<'lock, T> !UnwindSafe for RwLockWriteGuard<'lock, 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