pub enum Error<E> {
Other(E),
WouldBlock,
}
Expand description
A non-blocking error
The main use of this enum is to add a WouldBlock
variant to an existing
error enum.
Variants§
Implementations§
Trait Implementations§
Source§impl<E> Ord for Error<E>where
E: Ord,
impl<E> Ord for Error<E>where
E: Ord,
Source§impl<E> PartialOrd for Error<E>where
E: PartialOrd,
impl<E> PartialOrd for Error<E>where
E: PartialOrd,
impl<E> Copy for Error<E>where
E: Copy,
impl<E> Eq for Error<E>where
E: Eq,
impl<E> StructuralPartialEq for Error<E>
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> RefUnwindSafe for Error<E>where
E: RefUnwindSafe,
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> UnwindSafe for Error<E>where
E: UnwindSafe,
Blanket Implementations§
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