pub trait MutexMethod<'a, V> {
// Required method
fn lock(
&self,
mutex: &'a Mutex<RawMutex, V>,
) -> Option<MutexGuard<'a, RawMutex, V>>;
}Expand description
Trait for implementing read/write flavors on Mutex. Note that there are no Recursive locks in Mutex, use ReentrantMutex for that.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".