pub struct MutexGuard<T: ?Sized> { /* private fields */ }Expand description
An RAII mutex guard, much like std::sync::MutexGuard. The wrapped data
can be accessed via its Deref and DerefMut implementations.
Trait Implementations§
Source§impl<T: ?Sized> Deref for MutexGuard<T>
impl<T: ?Sized> Deref for MutexGuard<T>
Source§impl<T: ?Sized> DerefMut for MutexGuard<T>
impl<T: ?Sized> DerefMut for MutexGuard<T>
Auto Trait Implementations§
impl<T> Freeze for MutexGuard<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for MutexGuard<T>
impl<T> Send for MutexGuard<T>
impl<T> Sync for MutexGuard<T>
impl<T> Unpin for MutexGuard<T>where
T: ?Sized,
impl<T> !UnwindSafe for MutexGuard<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