Struct ordered_locks::RwLockWriteGuard
source · 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