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§
Source§impl Error for Error
impl Error for Error
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ToStrError> for Error
impl From<ToStrError> for Error
Source§fn from(e: ToStrError) -> Self
fn from(e: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more