Trait lock_order::lock::ExclusiveLock
source · pub trait ExclusiveLock<T>: 'static {
type Guard<'l>: DerefMut<Target = T>;
// Required method
fn lock(&self) -> Self::Guard<'_>;
}
Expand description
Abstracts an exclusive lock (i.e. a Mutex).
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.