pub struct Exclusive<'a, T>(_);
Expand description
Wraps a T
and provides exclusive access via a Mutex
impl.
This provides an no-op Mutex
implementation for data that does not need a real mutex.
Creates a new Exclusive
object wrapping data
.
Consumes this Exclusive
instance and returns the wrapped value.
Formats the value using the given formatter.
Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.
Data protected by the mutex.
Creates a critical section and grants temporary access to the protected data.
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.