pub enum ErrorWrapper<T> {
Inner(T),
Timeout(TimeoutError),
}
Variants§
Inner(T)
Timeout(TimeoutError)
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)>
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()