pub enum WithTimeoutError<E> {
Error(E),
Timeout,
}Expand description
Error type for the with_timeout function and WithTimeout struct.
Variants§
Trait Implementations§
Source§impl<E: Debug> Debug for WithTimeoutError<E>
impl<E: Debug> Debug for WithTimeoutError<E>
Source§impl<E> Display for WithTimeoutError<E>where
E: Display,
impl<E> Display for WithTimeoutError<E>where
E: Display,
Source§impl<E> Error for WithTimeoutError<E>where
E: Error,
impl<E> Error for WithTimeoutError<E>where
E: Error,
Auto Trait Implementations§
impl<E> Freeze for WithTimeoutError<E>where
E: Freeze,
impl<E> RefUnwindSafe for WithTimeoutError<E>where
E: RefUnwindSafe,
impl<E> Send for WithTimeoutError<E>where
E: Send,
impl<E> Sync for WithTimeoutError<E>where
E: Sync,
impl<E> Unpin for WithTimeoutError<E>where
E: Unpin,
impl<E> UnwindSafe for WithTimeoutError<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