Skip to main content

lock

Function lock 

Source
pub fn lock<T>(m: &Mutex<T>) -> MutexGuard<'_, T>
Expand description

Locks a mutex, ignoring poisoning (a panic caught by a fault boundary must not make the framework’s own state unusable).