pub struct GenericMutexGuard<'a, Cell, Mutex: MutexHandle> { /* private fields */ }
Available on crate feature sync only.
Expand description

An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped, the lock will be released.

This structure is created by the lock and try_lock methods of GenericMutex.

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Formats the value using the given formatter. Read more

The destructor of GenericMutexGuard that releases the lock. It will panic if CPU Lock is active.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.