Skip to main content

RwLockRecover

Trait RwLockRecover 

pub trait RwLockRecover<T>
where 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>

Implementations on Foreign Types§

§

impl<T> RwLockRecover<T> for RwLock<T>
where T: ?Sized,

§

fn read_recover(&self) -> RwLockReadGuard<'_, T>

§

fn write_recover(&self) -> RwLockWriteGuard<'_, T>

Implementors§