pub enum Error {
Hyper(Error),
HyperHeaderToStrError(ToStrError),
ParseInt(ParseIntError),
Io(Error),
Url(ParseError),
Aborted,
TooManyRedirects,
TokioTimeoutInnerVal(String),
TokioTimer(Option<Error>),
Timeout,
SizeLimit,
BackgroundThreadDead,
}
Expand description
Fetch error cases.
Variants
Hyper(Error)
Hyper gave us an error.
HyperHeaderToStrError(ToStrError)
A hyper header conversion error.
ParseInt(ParseIntError)
An integer parsing error.
Io(Error)
Some I/O error occured.
Url(ParseError)
Invalid URLs where attempted to parse.
Aborted
Calling code invoked Abort::abort
.
TooManyRedirects
Too many redirects have been encountered.
TokioTimeoutInnerVal(String)
tokio-timer inner future gave us an error.
TokioTimer(Option<Error>)
tokio-timer gave us an error.
Timeout
The maximum duration was reached.
SizeLimit
The response body is too large.
BackgroundThreadDead
The background processing thread does not run.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Performs the conversion.
sourceimpl From<ParseIntError> for Error
impl From<ParseIntError> for Error
sourcefn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Performs the conversion.
sourceimpl From<ToStrError> for Error
impl From<ToStrError> for Error
sourcefn from(e: ToStrError) -> Self
fn from(e: ToStrError) -> Self
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more