pub trait ReadLockWithPoisonBehavior<T>where
T: ?Sized,{
type Guard<'g>
where Self: 'g;
// Required methods
fn read_lock_with_poison_behavior<F>(
&self,
if_poisoned: F,
) -> Self::Guard<'_>
where F: FnOnce(&mut Self::Guard<'_>),
T: 'static;
fn read_lock_ignore_poison(&self) -> Self::Guard<'_>;
fn read_lock_clear_poison(&self) -> Self::Guard<'_>;
}Required Associated Types§
Required Methods§
fn read_lock_with_poison_behavior<F>(&self, if_poisoned: F) -> Self::Guard<'_>
fn read_lock_ignore_poison(&self) -> Self::Guard<'_>
fn read_lock_clear_poison(&self) -> Self::Guard<'_>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.