Struct ShardedLockReadGuard
pub struct ShardedLockReadGuard<'a, T: ?Sized> { /* private fields */ }
A guard used to release the shared read access of a ShardedLock when dropped.
Trait Implementations
impl<T: ?Sized + Display> Display for ShardedLockReadGuard<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: ?Sized + Sync> Sync for ShardedLockReadGuard<'_, T>
impl<T: ?Sized> Deref for ShardedLockReadGuard<'_, T>
type Target = T;fn deref(&self) -> &T
impl<T: Debug> Debug for ShardedLockReadGuard<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<'a, T> !Send for ShardedLockReadGuard<'a, T>
impl<'a, T> Freeze for ShardedLockReadGuard<'a, T>
where
&'a ShardedLock<T>: Freeze,
PhantomData<RwLockReadGuard<'a, T>>: Freeze,
T: ?Sized,
impl<'a, T> RefUnwindSafe for ShardedLockReadGuard<'a, T>
where
&'a ShardedLock<T>: RefUnwindSafe,
PhantomData<RwLockReadGuard<'a, T>>: RefUnwindSafe,
T: ?Sized,
impl<'a, T> Unpin for ShardedLockReadGuard<'a, T>
where
&'a ShardedLock<T>: Unpin,
PhantomData<RwLockReadGuard<'a, T>>: Unpin,
T: ?Sized,
impl<'a, T> UnsafeUnpin for ShardedLockReadGuard<'a, T>
where
&'a ShardedLock<T>: UnsafeUnpin,
PhantomData<RwLockReadGuard<'a, T>>: UnsafeUnpin,
T: ?Sized,
impl<'a, T> UnwindSafe for ShardedLockReadGuard<'a, T>
where
&'a ShardedLock<T>: UnwindSafe,
PhantomData<RwLockReadGuard<'a, T>>: UnwindSafe,
T: ?Sized,
Blanket Implementations
impl<P, T> Receiver for ShardedLockReadGuard<'a, T>
where
P: Deref<Target = T> + ?Sized,
T: ?Sized,
type Target = T;
impl<T> Any for ShardedLockReadGuard<'a, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ShardedLockReadGuard<'a, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ShardedLockReadGuard<'a, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ShardedLockReadGuard<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for ShardedLockReadGuard<'a, T>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for ShardedLockReadGuard<'a, T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ShardedLockReadGuard<'a, T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ShardedLockReadGuard<'a, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>