pub trait MutexLike {
type Guard<'a>
where Self: 'a;
type Context;
// Required methods
fn context() -> Self::Context;
fn lock(&self, context: &mut Self::Context) -> Self::Guard<'_>;
// Provided method
fn key(&self) -> *const ()
where Self: Sized { ... }
}Expand description
A generic mutex for the ordered_lock operations.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".