pub type Mutex<T> = Mutex<RawSyncMutex, T>;Aliased Type§
pub struct Mutex<T> { /* private fields */ }Trait Implementations§
Source§impl<T> MutexLike for Mutex<T>
impl<T> MutexLike for Mutex<T>
type Guard<'a> = MutexGuard<'a, RawSyncMutex, T> where T: 'a
type Context = ()
fn context() -> Self::Context
Source§fn lock(&self, _context: &mut Self::Context) -> Self::Guard<'_>
fn lock(&self, _context: &mut Self::Context) -> Self::Guard<'_>
Lock the mutex.
level is the index of the locked mutex in the lock ordering.