pub struct RwLockWriteGuard<'a, T: ?Sized + 'a> { /* private fields */ }
Expand description
An RAII implementation of a “scoped exclusive write lock” of a RwLock.
When this instance is dropped (falls out of scope), the lock will be released.
The data protected by the RwLock can be accessed to read/write
through this guard via its Deref
and DerefMut
implementation.
This instance is created by write
and try_write
methods on
RwLock
.
Trait Implementations§
Source§impl<T: Debug> Debug for RwLockWriteGuard<'_, T>
impl<T: Debug> Debug for RwLockWriteGuard<'_, T>
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>
Source§impl<T: ?Sized> Drop for RwLockWriteGuard<'_, T>
impl<T: ?Sized> Drop for RwLockWriteGuard<'_, T>
impl<T: ?Sized + Sync> Sync for RwLockWriteGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RwLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RwLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> !Send for RwLockWriteGuard<'a, T>
impl<'a, T> Unpin for RwLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for RwLockWriteGuard<'a, T>where
T: ?Sized,
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