Enum std::sync::TryLockError 1.0.0[−][src]
pub enum TryLockError<T> { Poisoned(PoisonError<T>), WouldBlock, }
Expand description
Variants
Poisoned(PoisonError<T>)
由于另一个线程在持有锁时失败,因此无法获取该锁。
此时无法获取该锁,因为否则该操作将阻塞。
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
执行转换。