Struct embassy_sync::mutex::MutexGuard
source · pub struct MutexGuard<'a, M, T>where
M: RawMutex,
T: ?Sized,{ /* 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§
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§
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