pub struct MutexGuard<'a, T> { /* private fields */ }Expand description
Guard for a Mutex, reports lock release when dropped
The MutexGuard provides the same interface as a standard mutex guard, but additionally reports lock release to the deadlock detector when dropped. This ensures that the detector’s state is kept up to date with actual lock states.
Trait Implementations§
Source§impl<T> DerefMut for MutexGuard<'_, T>
impl<T> DerefMut for MutexGuard<'_, T>
Source§impl<T> Drop for MutexGuard<'_, T>
impl<T> Drop for MutexGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for MutexGuard<'a, T>
impl<'a, T> !RefUnwindSafe for MutexGuard<'a, T>
impl<'a, T> !Send for MutexGuard<'a, T>
impl<'a, T> Sync for MutexGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for MutexGuard<'a, T>
impl<'a, T> !UnwindSafe for MutexGuard<'a, 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