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§
fn read_recover(&self) -> RwLockReadGuard<'_, T>
fn write_recover(&self) -> RwLockWriteGuard<'_, T>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".