1.0.0[][src]Enum std::sync::TryLockError

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

An enumeration of possible errors associated with a TryLockResult which can occur while trying to acquire a lock, from the try_lock method on a Mutex or the try_read and try_write methods on an RwLock.

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> Error for TryLockError<T>[src]

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

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

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

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

impl<T> From<PoisonError<T>> for TryLockError<T>[src]

Auto Trait Implementations

impl<T> UnwindSafe for TryLockError<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for TryLockError<T> where
    T: RefUnwindSafe

impl<T> Unpin for TryLockError<T> where
    T: Unpin

impl<T> Sync for TryLockError<T> where
    T: Sync

impl<T> Send for TryLockError<T> where
    T: Send

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]