pub trait MutexSafe<T: ?Sized> {
// Required method
fn lock_safe(&self) -> MutexGuard<'_, T>;
}Expand description
Poison-tolerant locking for std::sync::Mutex.
Required Methods§
Sourcefn lock_safe(&self) -> MutexGuard<'_, T>
fn lock_safe(&self) -> MutexGuard<'_, T>
Lock the mutex, recovering the inner guard if the lock was poisoned.