Enum rwlock2::TryLockError [] [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(PoisonError<T>)

The lock could not be acquired because another thread 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> From<PoisonError<T>> for TryLockError<T>
[src]

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

Performs the conversion.

impl<T> Debug for TryLockError<T>
[src]

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

Formats the value using the given formatter.

impl<T: Send + Any> Display for TryLockError<T>
[src]

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

Formats the value using the given formatter.

impl<T: Send + Any> Error for TryLockError<T>
[src]

fn description(&self) -> &str

A short description of the error. Read more

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

The lower-level cause of this error, if any. Read more