Skip to main content

MutexRecover

Trait MutexRecover 

Source
pub trait MutexRecover<T: ?Sized> {
    // Required method
    fn lock_recover(&self) -> MutexGuard<'_, T>;
}
Expand description

Mutex::lock, recovering the guard of a poisoned mutex.

Required Methods§

Source

fn lock_recover(&self) -> MutexGuard<'_, T>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: ?Sized> MutexRecover<T> for Mutex<T>

Source§

fn lock_recover(&self) -> MutexGuard<'_, T>

Implementors§