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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".