Struct embassy_sync::mutex::MutexGuard
source · [−]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
sourceimpl<'a, M, T> Deref for MutexGuard<'a, M, T>where
M: RawMutex,
T: ?Sized,
impl<'a, M, T> Deref for MutexGuard<'a, M, T>where
M: RawMutex,
T: ?Sized,
sourceimpl<'a, M, T> DerefMut for MutexGuard<'a, M, T>where
M: RawMutex,
T: ?Sized,
impl<'a, M, T> DerefMut for MutexGuard<'a, M, T>where
M: RawMutex,
T: ?Sized,
Auto Trait Implementations
impl<'a, M, T> !RefUnwindSafe for MutexGuard<'a, M, T>
impl<'a, M, T: ?Sized> Send for MutexGuard<'a, M, T>where
M: Sync,
T: Send,
impl<'a, M, T: ?Sized> Sync for MutexGuard<'a, M, T>where
M: Sync,
T: Send,
impl<'a, M, T: ?Sized> Unpin for MutexGuard<'a, M, T>
impl<'a, M, T> !UnwindSafe for MutexGuard<'a, M, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more