Skip to main content

mutex_lock

Function mutex_lock 

Source
pub fn mutex_lock<T>(mutex: &Mutex<T>) -> Result<MutexGuard<'_, T>>
Expand description

Locks the mutex.