Skip to main content

RwLockRecover

Trait RwLockRecover 

Source
pub trait RwLockRecover<T: ?Sized> {
    // Required methods
    fn read_recover(&self) -> RwLockReadGuard<'_, T>;
    fn write_recover(&self) -> RwLockWriteGuard<'_, T>;
}
Expand description

RwLock::read and RwLock::write, recovering the guard of a poisoned lock.

Required Methods§

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> RwLockRecover<T> for RwLock<T>

Implementors§