pub struct RwLockWriteGuard<'a, L: Level, T> { /* private fields */ }
Expand description
RAII structure used to release the exclusive write access of a lock when dropped
Implementations§
Source§impl<'a, L: Level, T> RwLockWriteGuard<'a, L, T>
impl<'a, L: Level, T> RwLockWriteGuard<'a, L, T>
Sourcepub fn token_split(&mut self) -> (&mut T, LockToken<'_, L>)
pub fn token_split(&mut self) -> (&mut T, LockToken<'_, L>)
Split the guard into two parts, the first a mutable reference to the held content
the second a LockToken
that can be used for further locking
Trait Implementations§
Source§impl<'a, L: Level, T> Deref for RwLockWriteGuard<'a, L, T>
impl<'a, L: Level, T> Deref for RwLockWriteGuard<'a, L, T>
Auto Trait Implementations§
impl<'a, L, T> Freeze for RwLockWriteGuard<'a, L, T>
impl<'a, L, T> RefUnwindSafe for RwLockWriteGuard<'a, L, T>where
L: RefUnwindSafe,
impl<'a, L, T> !Send for RwLockWriteGuard<'a, L, T>
impl<'a, L, T> Sync for RwLockWriteGuard<'a, L, T>
impl<'a, L, T> Unpin for RwLockWriteGuard<'a, L, T>
impl<'a, L, T> !UnwindSafe for RwLockWriteGuard<'a, L, 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