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 holdingthe lock.
WouldBlock
The lock could not be acquired at this time because the operation wouldotherwise block.
Trait Implementations§
1.0.0 ·Source§impl<T>Debug forTryLockError<T>
impl<T>Debug forTryLockError<T>
1.0.0 ·Source§impl<T>Display forTryLockError<T>
impl<T>Display forTryLockError<T>
1.0.0 ·Source§impl<T>Error forTryLockError<T>
impl<T>Error forTryLockError<T>
Source§fncause(&self) ->Option<&dynError>
fncause(&self) ->Option<&dynError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 ·Source§fnsource(&self) ->Option<&(dynError + 'static)>
fnsource(&self) ->Option<&(dynError + 'static)>
Returns the lower-level source of this error, if any.Read more
1.0.0 ·Source§fndescription(&self) -> &str
fndescription(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 ·Source§impl<T>From<PoisonError<T>> forTryLockError<T>
impl<T>From<PoisonError<T>> forTryLockError<T>
Source§fnfrom(err:PoisonError<T>) ->TryLockError<T>
fnfrom(err:PoisonError<T>) ->TryLockError<T>
Converts to this type from the input type.
Auto Trait Implementations§
impl<T>Freeze forTryLockError<T>where T:Freeze,
impl<T>RefUnwindSafe forTryLockError<T>where T:RefUnwindSafe,
impl<T>Send forTryLockError<T>where T:Send,
impl<T>Sync forTryLockError<T>where T:Sync,
impl<T>Unpin forTryLockError<T>where T:Unpin,
impl<T>UnwindSafe forTryLockError<T>where T:UnwindSafe,
Blanket Implementations§
Source§impl<T>BorrowMut<T> for Twhere T: ?Sized,
impl<T>BorrowMut<T> for Twhere T: ?Sized,
Source§fnborrow_mut(&mut self) ->&mut T
fnborrow_mut(&mut self) ->&mut T
Mutably borrows from an owned value.Read more