Struct embassy_sync::mutex::MutexGuard
source · 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.
Trait Implementations§
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>
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