Struct ThreadModeRawMutex
Source pub struct ThreadModeRawMutex { }
Expand description
A “mutex” that only allows borrowing from thread mode.
§Safety
This Mutex is only safe on single-core systems.
On multi-core systems, a ThreadModeRawMutex is not sufficient to ensure exclusive access.
Create a new ThreadModeRawMutex.
Executes the destructor for this type.
Read more
🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to
Drop::drop, it requires
self
to be pinned.
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.