Struct std::sync::mutex::StaticMutex
[−]
[src]
pub struct StaticMutex { lock: AtomicBool, }
Fields
lock |
Methods
impl StaticMutex
const fn new() -> Self
Create a new mutex with value value
.
fn lock(&'static self) -> Result<MutexGuard<()>, ()>
Lock the mutex