Struct OwnedMutexGuard

struct OwnedMutexGuard<T: ?Sized> { ... }

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.

Implementations

impl<P, T> Receiver for OwnedMutexGuard<T>

impl<T> Any for OwnedMutexGuard<T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for OwnedMutexGuard<T>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for OwnedMutexGuard<T>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> Freeze for OwnedMutexGuard<T>

impl<T> From for OwnedMutexGuard<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> RefUnwindSafe for OwnedMutexGuard<T>

impl<T> Unpin for OwnedMutexGuard<T>

impl<T> UnsafeUnpin for OwnedMutexGuard<T>

impl<T> UnwindSafe for OwnedMutexGuard<T>

impl<T, U> Into for OwnedMutexGuard<T>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for OwnedMutexGuard<T>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for OwnedMutexGuard<T>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<T: ?Sized + Send> Send for OwnedMutexGuard<T>

impl<T: ?Sized + Sync> Sync for OwnedMutexGuard<T>

impl<T: ?Sized + fmt::Debug> Debug for OwnedMutexGuard<T>

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl<T: ?Sized> Deref for OwnedMutexGuard<T>

fn deref(self: &Self) -> &T

impl<T: ?Sized> DerefMut for OwnedMutexGuard<T>

fn deref_mut(self: &mut Self) -> &mut T

impl<T: ?Sized> Drop for OwnedMutexGuard<T>

fn drop(self: &mut Self)