1.0.0[−][src]Enum std::sync::TryLockError
An enumeration of possible errors associated with a TryLockResult which
can occur while trying to acquire a lock, from the try_lock method on a
Mutex or the try_read and try_write methods on an RwLock.
Variants
Poisoned(PoisonError<T>)The lock could not be acquired because another thread failed while holding the lock.
WouldBlockThe lock could not be acquired at this time because the operation would otherwise block.
Trait Implementations
impl<T> Error for TryLockError<T>[src]
impl<T> Error for TryLockError<T>fn description(&self) -> &str[src]
fn description(&self) -> &strfn cause(&self) -> Option<&dyn Error>[src]
fn cause(&self) -> Option<&dyn Error>fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0
[src]The lower-level source of this error, if any. Read more
impl<T> From<PoisonError<T>> for TryLockError<T>[src]
impl<T> From<PoisonError<T>> for TryLockError<T>fn from(err: PoisonError<T>) -> TryLockError<T>[src]
fn from(err: PoisonError<T>) -> TryLockError<T>impl<T> Display for TryLockError<T>[src]
impl<T> Display for TryLockError<T>impl<T> Debug for TryLockError<T>[src]
impl<T> Debug for TryLockError<T>Auto Trait Implementations
impl<T> Send for TryLockError<T> where
T: Send,
impl<T> Send for TryLockError<T> where
T: Send, impl<T> Sync for TryLockError<T> where
T: Sync,
impl<T> Sync for TryLockError<T> where
T: Sync, Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'_ mut Ifn borrow_mut(&mut self) -> &mut T[src]
ⓘImportant traits for &'_ mut I
fn borrow_mut(&mut self) -> &mut Timpl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> ToString for T where
T: Display + ?Sized, [src]
impl<T> ToString for T where
T: Display + ?Sized,