Struct ShardedLockWriteGuard
pub struct ShardedLockWriteGuard<'a, T: ?Sized> { /* private fields */ }
A guard used to release the exclusive write access of a ShardedLock when dropped.
Trait Implementations
impl<T: ?Sized + Display> Display for ShardedLockWriteGuard<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: ?Sized + Sync> Sync for ShardedLockWriteGuard<'_, T>
impl<T: ?Sized> Deref for ShardedLockWriteGuard<'_, T>
type Target = T;fn deref(&self) -> &T
impl<T: ?Sized> DerefMut for ShardedLockWriteGuard<'_, T>
fn deref_mut(&mut self) -> &mut T
impl<T: ?Sized> Drop for ShardedLockWriteGuard<'_, T>
fn drop(&mut self)
impl<T: Debug> Debug for ShardedLockWriteGuard<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<'a, T> !Send for ShardedLockWriteGuard<'a, T>
impl<'a, T> Freeze for ShardedLockWriteGuard<'a, T>
where
&'a ShardedLock<T>: Freeze,
PhantomData<RwLockWriteGuard<'a, T>>: Freeze,
T: ?Sized,
impl<'a, T> RefUnwindSafe for ShardedLockWriteGuard<'a, T>
where
&'a ShardedLock<T>: RefUnwindSafe,
PhantomData<RwLockWriteGuard<'a, T>>: RefUnwindSafe,
T: ?Sized,
impl<'a, T> Unpin for ShardedLockWriteGuard<'a, T>
where
&'a ShardedLock<T>: Unpin,
PhantomData<RwLockWriteGuard<'a, T>>: Unpin,
T: ?Sized,
impl<'a, T> UnsafeUnpin for ShardedLockWriteGuard<'a, T>
where
&'a ShardedLock<T>: UnsafeUnpin,
PhantomData<RwLockWriteGuard<'a, T>>: UnsafeUnpin,
T: ?Sized,
impl<'a, T> UnwindSafe for ShardedLockWriteGuard<'a, T>
where
&'a ShardedLock<T>: UnwindSafe,
PhantomData<RwLockWriteGuard<'a, T>>: UnwindSafe,
T: ?Sized,
Blanket Implementations
impl<P, T> Receiver for ShardedLockWriteGuard<'a, T>
where
P: Deref<Target = T> + ?Sized,
T: ?Sized,
type Target = T;
impl<T> Any for ShardedLockWriteGuard<'a, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ShardedLockWriteGuard<'a, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ShardedLockWriteGuard<'a, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ShardedLockWriteGuard<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for ShardedLockWriteGuard<'a, T>
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for ShardedLockWriteGuard<'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 ShardedLockWriteGuard<'a, T>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ShardedLockWriteGuard<'a, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>