//! Extension for [std::sync::Mutex].
pubtraitMutexExt<T> {/// Lock the mutex, blocking the current thread until it can be acquired.
fnlock_blocking(&self)->std::sync::MutexGuard<'_, T>;}impl<T>MutexExt<T>forstd::sync::Mutex<T>{fnlock_blocking(&self)->std::sync::MutexGuard<'_, T>{self.lock().unwrap_or_else(|err|err.into_inner())}}