TryLockError

Type Alias TryLockError 

Source
pub type TryLockError<T> = TryLockError<T>;
Expand description

Alias to std::sync::TryLockError

Aliased Type§

pub enum TryLockError<T> {
    Poisoned(PoisonError<T>),
    WouldBlock,
}

Variants§

§1.0.0

Poisoned(PoisonError<T>)

The lock could not be acquired because another thread failed while holding the lock.

§1.0.0

WouldBlock

The lock could not be acquired at this time because the operation would otherwise block.