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
sourceimpl<T> Debug for TryLockError<T>
impl<T> Debug for TryLockError<T>
sourceimpl<T> Display for TryLockError<T>
impl<T> Display for TryLockError<T>
sourceimpl<T> Error for TryLockError<T>
impl<T> Error for TryLockError<T>
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcepub fn cause(&self) -> Option<&dyn Error>
pub fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl<T> From<PoisonError<T>> for TryLockError<T>
impl<T> From<PoisonError<T>> for TryLockError<T>
sourcepub fn from(err: PoisonError<T>) -> TryLockError<T>
pub fn from(err: PoisonError<T>) -> TryLockError<T>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more