Enum std::sync::TryLockError 1.0.0[−][src]
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.
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> Error for TryLockError<T>[src]
impl<T> Error for TryLockError<T>[src]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]
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> Borrow<T> for T where
T: ?Sized, [src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?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 Rimpl<W: Write + ?Sized> Write for &mut W[src]
Notable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?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 Rimpl<W: Write + ?Sized> Write for &mut Wimpl<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ⓘNotable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?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 Rimpl<W: Write + ?Sized> Write for &mut W[src]
Notable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?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 Rimpl<W: Write + ?Sized> Write for &mut W