Struct crossbeam_utils::sync::ShardedLockWriteGuard
source · pub struct ShardedLockWriteGuard<'a, T: ?Sized> {
lock: &'a ShardedLock<T>,
_marker: PhantomData<RwLockWriteGuard<'a, T>>,
}
Expand description
A guard used to release the exclusive write access of a ShardedLock
when dropped.
Fields§
§lock: &'a ShardedLock<T>
§_marker: PhantomData<RwLockWriteGuard<'a, T>>
Trait Implementations§
source§impl<T: Debug> Debug for ShardedLockWriteGuard<'_, T>
impl<T: Debug> Debug for ShardedLockWriteGuard<'_, T>
source§impl<T: ?Sized> Deref for ShardedLockWriteGuard<'_, T>
impl<T: ?Sized> Deref for ShardedLockWriteGuard<'_, T>
source§impl<T: ?Sized> DerefMut for ShardedLockWriteGuard<'_, T>
impl<T: ?Sized> DerefMut for ShardedLockWriteGuard<'_, T>
source§impl<T: ?Sized> Drop for ShardedLockWriteGuard<'_, T>
impl<T: ?Sized> Drop for ShardedLockWriteGuard<'_, T>
impl<T: ?Sized + Sync> Sync for ShardedLockWriteGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ShardedLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for ShardedLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> !Send for ShardedLockWriteGuard<'a, T>
impl<'a, T> Unpin for ShardedLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> UnwindSafe for ShardedLockWriteGuard<'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