Enum spinlock::TryLockErrorStable [-] [+] [src]

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

An enumeration of possible errors which can occur while calling the try_lock method.

Variants

Poisoned

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

WouldBlock

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

Trait Implementations

impl<T> FromError<PoisonError<T>> for TryLockError<T>

fn from_error(err: PoisonError<T>) -> TryLockError<T>

impl<T> Debug for TryLockError<T>

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl<T> Display for TryLockError<T>

fn fmt(&self, f: &mut Formatter) -> Result<(), Error>

impl<T> Error for TryLockError<T>

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>