pub enum ErrorWrapper<T> {
Inner(T),
Timeout(Error),
}
Variants§
Implementations§
Source§impl<T> ErrorWrapper<T>
impl<T> ErrorWrapper<T>
pub fn is_inner(&self) -> bool
pub fn is_timeout(&self) -> bool
pub fn into_inner(self) -> Option<T>
Trait Implementations§
Source§impl<T> Debug for ErrorWrapper<T>where
T: Debug,
impl<T> Debug for ErrorWrapper<T>where
T: Debug,
Source§impl<T> Display for ErrorWrapper<T>where
T: Debug,
impl<T> Display for ErrorWrapper<T>where
T: Debug,
Source§impl<T> Error for ErrorWrapper<T>where
T: Debug,
impl<T> Error for ErrorWrapper<T>where
T: Debug,
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E, P> RetryPredicate<ErrorWrapper<E>> for PredicateWrapper<P>where
P: RetryPredicate<E>,
impl<E, P> RetryPredicate<ErrorWrapper<E>> for PredicateWrapper<P>where
P: RetryPredicate<E>,
Auto Trait Implementations§
impl<T> Freeze for ErrorWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for ErrorWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for ErrorWrapper<T>where
T: Send,
impl<T> Sync for ErrorWrapper<T>where
T: Sync,
impl<T> Unpin for ErrorWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for ErrorWrapper<T>where
T: 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