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
sourceimpl<'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
sourceimpl<'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> 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>where
L: Sync,
T: Sync,
impl<'a, L, T> Unpin for RwLockWriteGuard<'a, L, T>
impl<'a, L, T> !UnwindSafe for RwLockWriteGuard<'a, L, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more