pub struct RwLockWriteGuard<'lock, 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: ?Sized> Deref for RwLockWriteGuard<'_, T>
impl<T: ?Sized> Deref for RwLockWriteGuard<'_, T>
Source§impl<T: ?Sized> DerefMut for RwLockWriteGuard<'_, T>
impl<T: ?Sized> DerefMut for RwLockWriteGuard<'_, T>
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