pub struct MutexGuard<'a, T> {
mutex: &'a Mutex<T>,
}
Expand description
The MutexGuard
struct is an RAII guard to allow scoped unlock of the lock. When the guard goes
out of scope, the Mutex it guards will be unlocked.
Creates a new MutexGuard
for the given Mutex.
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Executes the destructor for this type.
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.