pub enum Error {
Fmt(FmtError),
Json(JsonError),
Http(HttpError),
Hyper(HyperError),
Uri(InvalidUri),
}
Expand description
Enum encompassing the library’s possible returned errors.
Variants§
Fmt(FmtError)
An error that occurred while formatting a string.
Json(JsonError)
An error from the serde_json
crate while deserializing the body of an
HTTP response.
Http(HttpError)
An error from the http
crate.
Hyper(HyperError)
An error from the hyper
crate while performing an HTTP request.
Uri(InvalidUri)
An error when building a request’s URI from the http
crate.
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()
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
source§impl From<Error> for Error
impl From<Error> for Error
source§fn from(err: HyperError) -> Self
fn from(err: HyperError) -> Self
Converts to this type from the input type.
source§impl From<InvalidUri> for Error
impl From<InvalidUri> for Error
source§fn from(err: InvalidUri) -> Error
fn from(err: InvalidUri) -> Error
Converts to this type from the input type.