pub struct MutexGuard<'a, M, T>{ /* private fields */ }
Expand description
Async mutex guard.
Owning an instance of this type indicates having successfully locked the mutex, and grants access to the contents.
Dropping it unlocks the mutex.
Implementations§
Trait Implementations§
Source§impl<'a, M, T> Debug for MutexGuard<'a, M, T>
impl<'a, M, T> Debug for MutexGuard<'a, M, T>
Source§impl<'a, M, T> Deref for MutexGuard<'a, M, T>
impl<'a, M, T> Deref for MutexGuard<'a, M, T>
Source§impl<'a, M, T> DerefMut for MutexGuard<'a, M, T>
impl<'a, M, T> DerefMut for MutexGuard<'a, M, T>
Source§impl<'a, M, T> Display for MutexGuard<'a, M, T>
impl<'a, M, T> Display for MutexGuard<'a, M, T>
Auto Trait Implementations§
impl<'a, M, T> Freeze for MutexGuard<'a, M, T>where
T: ?Sized,
impl<'a, M, T> !RefUnwindSafe for MutexGuard<'a, M, T>
impl<'a, M, T> Send for MutexGuard<'a, M, T>
impl<'a, M, T> Sync for MutexGuard<'a, M, T>
impl<'a, M, T> Unpin for MutexGuard<'a, M, T>where
T: ?Sized,
impl<'a, M, T> !UnwindSafe for MutexGuard<'a, M, T>
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