Struct futures_locks::MutexGuard
source · 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
sourceimpl<T: ?Sized> Deref for MutexGuard<T>
impl<T: ?Sized> Deref for MutexGuard<T>
sourceimpl<T: ?Sized> DerefMut for MutexGuard<T>
impl<T: ?Sized> DerefMut for MutexGuard<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for MutexGuard<T>
impl<T: ?Sized> Send for MutexGuard<T>where
T: Send,
impl<T: ?Sized> Sync for MutexGuard<T>where
T: Send,
impl<T: ?Sized> Unpin for MutexGuard<T>
impl<T> !UnwindSafe for MutexGuard<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