Trait OrPoisoned

Source
pub trait OrPoisoned {
    type Inner;

    // Required method
    fn or_poisoned(self) -> Self::Inner;
}
Expand description

Unwraps a lock.

Required Associated Types§

Source

type Inner

The inner guard type.

Required Methods§

Source

fn or_poisoned(self) -> Self::Inner

Unwraps the lock.

§Panics

Will panic if the lock is poisoned.

Implementations on Foreign Types§

Source§

impl<'a, T> OrPoisoned for Result<RwLockReadGuard<'a, T>, PoisonError<RwLockReadGuard<'a, T>>>

Source§

impl<'a, T> OrPoisoned for Result<RwLockWriteGuard<'a, T>, PoisonError<RwLockWriteGuard<'a, T>>>

Source§

impl<'a, T> OrPoisoned for LockResult<MutexGuard<'a, T>>

Source§

type Inner = MutexGuard<'a, T>

Source§

fn or_poisoned(self) -> Self::Inner

Implementors§