pub enum TryLockError<T> { Poisoned(PoisonError<T>), WouldBlock, }
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
.
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.
impl<T> Debug for TryLockError<T>
[src]
impl<T> Display for TryLockError<T>
[src]
impl<T> Error for TryLockError<T>
[src]
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]1.30.0
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl<T> From<PoisonError<T>> for TryLockError<T>
[src]
fn from(err: PoisonError<T>) -> TryLockError<T>
[src]
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,Â
impl<T> Any for T where
    T: 'static + ?Sized,Â
[src]
impl<T> Borrow<T> for T where
    T: ?Sized,Â
[src]
fn borrow(&self) -> &TⓘNotable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized,Â
type Output = <F as Future>::Output;
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized,Â
type Item = <I as Iterator>::Item;
impl<R:Â Read + ?Sized, '_> Read for &'_ mut R
impl<W:Â Write + ?Sized, '_> Write for &'_ mut W
[src]
impl<T> BorrowMut<T> for T where
    T: ?Sized,Â
[src]
fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized,Â
type Output = <F as Future>::Output;
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized,Â
type Item = <I as Iterator>::Item;
impl<R:Â Read + ?Sized, '_> Read for &'_ mut R
impl<W:Â Write + ?Sized, '_> Write for &'_ mut W
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
    U: From<T>,Â
[src]
impl<T> ToString for T where
    T: Display + ?Sized,Â
[src]
impl<T, U> TryFrom<U> for T where
    U: Into<T>,Â
[src]
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>,Â
[src]
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/sync/enum.TryLockError.html