Enum wasmer_types::lib::std::sync::TryLockError 1.0.0[−][src]
pub enum TryLockError<T> {
Poisoned(PoisonError<T>),
WouldBlock,
}
Expand description
Variants
Poisoned(PoisonError<T>)
Tuple Fields
0: 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
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level source of this error, if any. Read more
Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for TryLockError<T> where
T: RefUnwindSafe,
impl<T> Send for TryLockError<T> where
T: Send,
impl<T> Sync for TryLockError<T> where
T: Sync,
impl<T> Unpin for TryLockError<T> where
T: Unpin,
impl<T> UnwindSafe for TryLockError<T> where
T: UnwindSafe,
Blanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more