Enum sp_std::sync::TryLockError
1.0.0 · source · 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.
WouldBlock
The lock could not be acquired at this time because the operation would otherwise block.
Trait Implementations§
source§impl<T> Debug for TryLockError<T>
impl<T> Debug for TryLockError<T>
source§impl<T> Display for TryLockError<T>
impl<T> Display for TryLockError<T>
source§impl<T> Error for TryLockError<T>
impl<T> Error for TryLockError<T>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl<T> From<PoisonError<T>> for TryLockError<T>
impl<T> From<PoisonError<T>> for TryLockError<T>
source§fn from(err: PoisonError<T>) -> TryLockError<T>
fn from(err: PoisonError<T>) -> TryLockError<T>
Converts to this type from the input type.