pub struct RwMutexWriteGuard<'a, T> { /* private fields */ }Expand description
A guard that provides mutable data access.
Implementations§
Source§impl<'a, T> RwMutexWriteGuard<'a, T>
impl<'a, T> RwMutexWriteGuard<'a, T>
Source§impl<'a, T> RwMutexWriteGuard<'a, T>
impl<'a, T> RwMutexWriteGuard<'a, T>
Sourcepub exec fn downgrade(self) -> RwMutexUpgradeableGuard<'a, T>
pub exec fn downgrade(self) -> RwMutexUpgradeableGuard<'a, T>
Atomically downgrades a write guard to an upgradeable reader guard.
This method always succeeds because the lock is exclusively held by the writer.
Trait Implementations§
Source§impl<T> Deref for RwMutexWriteGuard<'_, T>
impl<T> Deref for RwMutexWriteGuard<'_, T>
impl<T> !Send for RwMutexWriteGuard<'_, T>
impl<T: Sync> Sync for RwMutexWriteGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RwMutexWriteGuard<'a, T>
impl<'a, T> !RefUnwindSafe for RwMutexWriteGuard<'a, T>
impl<'a, T> Unpin for RwMutexWriteGuard<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for RwMutexWriteGuard<'a, 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