Enum kitsu::Error
[−]
[src]
pub enum Error { Json(JsonError), Reqwest(ReqwestError), ReqwestBad(Box<ReqwestResponse>), ReqwestInvalid(Box<ReqwestResponse>), ReqwestParse(ReqwestUrlError), ReqwestUnauthorized(Box<ReqwestResponse>), }
An error type to compose a singular error enum between various dependencies' errors.
Variants
Json(JsonError)
An error from the serde_json
crate.
A potential reason for this is when there is an error deserializing a JSON response body.
Reqwest(ReqwestError)
An error from the reqwest
crate when it is enabled.
ReqwestBad(Box<ReqwestResponse>)
An error indicating a bad request when using reqwest
.
ReqwestInvalid(Box<ReqwestResponse>)
An error indicating an invalid request when using reqwest
.
ReqwestParse(ReqwestUrlError)
An error indicating a parsing issue when using reqwest
.
An error indicating an unathorized request when using reqwest
.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<JsonError> for Error
[src]
impl From<ReqwestError> for Error
[src]
fn from(err: ReqwestError) -> Self
[src]
Performs the conversion.
impl From<ReqwestUrlError> for Error
[src]
fn from(err: ReqwestUrlError) -> Self
[src]
Performs the conversion.
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> FmtResult
[src]
Formats the value using the given formatter. Read more