Enum std::sync::TryLockError 1.0.0[−][src]
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.
The lock could not be acquired at this time because the operation would otherwise block.
Trait Implementations
impl<T> Debug for TryLockError<T>[src]
impl<T> Debug for TryLockError<T>[src]impl<T> Display for TryLockError<T>[src]
impl<T> Display for TryLockError<T>[src]impl<T> Error for TryLockError<T>[src]
impl<T> Error for TryLockError<T>[src]fn description(&self) -> &str[src]
fn description(&self) -> &str[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn cause(&self) -> Option<&dyn Error>[src]
fn cause(&self) -> Option<&dyn Error>[src]👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
impl<T> From<PoisonError<T>> for TryLockError<T>[src]
impl<T> From<PoisonError<T>> for TryLockError<T>[src]fn from(err: PoisonError<T>) -> TryLockError<T>[src]
fn from(err: PoisonError<T>) -> TryLockError<T>[src]Performs the conversion.
Auto Trait Implementations
impl<T> RefUnwindSafe for TryLockError<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for TryLockError<T> where
T: Send,
T: Send,
impl<T> Sync for TryLockError<T> where
T: Sync,
T: Sync,
impl<T> Unpin for TryLockError<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for TryLockError<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more