pub trait Mutex: Sync + Send {
// Required methods
fn lock(&self, tid: ThreadId) -> bool;
fn unlock(&self) -> Option<ThreadId>;
}Expand description
Mutex trait
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".