Skip to main content

lock

Function lock 

Source
pub fn lock<T: ?Sized>(mutex: &Mutex<T>) -> MutexGuard<'_, T>