pub struct ShardedLockReadGuard<'a, T: ?Sized> { /* private fields */ }Expand description
A guard used to release the shared read access of a ShardedLock when dropped.
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> !Send for ShardedLockReadGuard<'a, T>
impl<'a, T> Forget for ShardedLockReadGuard<'a, T>where
T: ?Sized,
impl<'a, T> Freeze for ShardedLockReadGuard<'a, T>where
&'a ShardedLock<T>: Freeze,
*const () is !null: Freeze,
&'a RwLock: Freeze,
PhantomData<RwLockReadGuard<'a, T>>: Freeze,
T: ?Sized,
impl<'a, T> Move for ShardedLockReadGuard<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for ShardedLockReadGuard<'a, T>
impl<'a, T> Unpin for ShardedLockReadGuard<'a, T>
impl<'a, T> UnsafeUnpin for ShardedLockReadGuard<'a, T>where
&'a ShardedLock<T>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
&'a RwLock: UnsafeUnpin,
PhantomData<RwLockReadGuard<'a, T>>: UnsafeUnpin,
T: ?Sized,
impl<'a, T> UnwindSafe for ShardedLockReadGuard<'a, T>where
&'a ShardedLock<T>: UnwindSafe,
NonNull<()>: UnwindSafe,
&'a RwLock: UnwindSafe,
NonNull<T>: UnwindSafe,
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