Enum gluon_vm::gc::mutex::TryLockError 1.0.0[−][src]
pub enum TryLockError<T> {
Poisoned(PoisonError<T>),
WouldBlock,
}
Expand description
Variants
Poisoned(PoisonError<T>)
The lock could not be acquired because another thread failed while holding the lock.
Tuple Fields of Poisoned
0: PoisonError<T>
The lock could not be acquired at this time because the operation would otherwise block.
Trait Implementations
use the Display impl or to_string()
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
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more