pub trait Lockable {
type GuardMut<'a>
where Self: 'a;
// Required methods
fn lock(&self) -> Self::GuardMut<'_>;
fn try_lock(&self) -> Option<Self::GuardMut<'_>>;
fn unlock(guard: Self::GuardMut<'_>) -> &Self;
}Expand description
Any mutex object should implement this trait
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.