pub type NoopMutex<T> = Mutex<NoopRawMutex, T>;
Expand description
A mutex that allows borrowing data in the context of a single executor.
§Safety
This Mutex is only safe within a single executor.
Aliased Type§
struct NoopMutex<T> { /* private fields */ }
Implementations
Source§impl<R, T> Mutex<R, T>
impl<R, T> Mutex<R, T>
Sourcepub const fn const_new(raw_mutex: R, val: T) -> Mutex<R, T>
pub const fn const_new(raw_mutex: R, val: T) -> Mutex<R, T>
Creates a new mutex based on a pre-existing raw mutex.
This allows creating a mutex in a constant context on stable Rust.
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consumes this mutex, returning the underlying data.