pub trait Mutex: Sync + Send { // Required methods fn lock(&self); fn unlock(&self); }
Mutex trait
Lock the mutex
Unlock the mutex