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.