Struct futures_util::lock::OwnedMutexGuard
source · pub struct OwnedMutexGuard<T: ?Sized> {
mutex: Arc<Mutex<T>>,
}
Expand description
An RAII guard returned by the lock_owned
and try_lock_owned
methods.
When this structure is dropped (falls out of scope), the lock will be
unlocked.
Fields§
§mutex: Arc<Mutex<T>>
Trait Implementations§
source§impl<T: ?Sized> Deref for OwnedMutexGuard<T>
impl<T: ?Sized> Deref for OwnedMutexGuard<T>
source§impl<T: ?Sized> DerefMut for OwnedMutexGuard<T>
impl<T: ?Sized> DerefMut for OwnedMutexGuard<T>
source§impl<T: ?Sized> Drop for OwnedMutexGuard<T>
impl<T: ?Sized> Drop for OwnedMutexGuard<T>
impl<T: ?Sized + Send> Send for OwnedMutexGuard<T>
impl<T: ?Sized + Sync> Sync for OwnedMutexGuard<T>
Auto Trait Implementations§
impl<T> Freeze for OwnedMutexGuard<T>where
T: ?Sized,
impl<T> !RefUnwindSafe for OwnedMutexGuard<T>
impl<T> Unpin for OwnedMutexGuard<T>where
T: ?Sized,
impl<T> !UnwindSafe for OwnedMutexGuard<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