pub type TryLockError<T> = TryLockError<T>;
Expand description
Alias to std::sync::TryLockError
Aliased Type§
pub enum TryLockError<T> {
Poisoned(PoisonError<T>),
WouldBlock,
}
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.