Enum aur::Error [−][src]
pub enum Error { Fmt(FmtError), Json(JsonError), Http(HttpError), Hyper(HyperError), Uri(InvalidUri), }
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
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> FmtResult
[src]
fn fmt(&self, f: &mut Formatter) -> FmtResult
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl From<FmtError> for Error
[src]
impl From<FmtError> for Error
impl From<JsonError> for Error
[src]
impl From<JsonError> for Error
impl From<HttpError> for Error
[src]
impl From<HttpError> for Error
impl From<HyperError> for Error
[src]
impl From<HyperError> for Error
fn from(err: HyperError) -> Self
[src]
fn from(err: HyperError) -> Self
Performs the conversion.
impl From<InvalidUri> for Error
[src]
impl From<InvalidUri> for Error
fn from(err: InvalidUri) -> Error
[src]
fn from(err: InvalidUri) -> Error
Performs the conversion.