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