pub enum TryLockError {
Poisoned,
WouldBlock,
}Expand description
A non-generic version of sync::TryLockError
Variants§
Trait Implementations§
Source§impl Debug for TryLockError
impl Debug for TryLockError
Source§impl Display for TryLockError
impl Display for TryLockError
Source§impl Error for TryLockError
impl Error for TryLockError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl<T> From<TryLockError<T>> for TryLockError
impl<T> From<TryLockError<T>> for TryLockError
Source§fn from(error: TryLockError<T>) -> TryLockError
fn from(error: TryLockError<T>) -> TryLockError
Converts to this type from the input type.
Source§impl PartialEq for TryLockError
impl PartialEq for TryLockError
Source§fn eq(&self, other: &TryLockError) -> bool
fn eq(&self, other: &TryLockError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TryLockError
impl StructuralPartialEq for TryLockError
Auto Trait Implementations§
impl Freeze for TryLockError
impl RefUnwindSafe for TryLockError
impl Send for TryLockError
impl Sync for TryLockError
impl Unpin for TryLockError
impl UnsafeUnpin for TryLockError
impl UnwindSafe for TryLockError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> DispatchEvent for T
impl<T> DispatchEvent for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.