pub enum Error {
Reqwest(Error),
Server(ServerError),
}Variants§
Reqwest(Error)
Server(ServerError)
Implementations§
source§impl Error
impl Error
pub fn as_reqwest_error(&self) -> Option<&Error>
pub fn is_reqwest_error(&self) -> bool
pub fn as_server_error(&self) -> Option<&ServerError>
pub fn is_server_error(&self) -> bool
Trait Implementations§
source§impl From<(StatusCode, ServerBodyError)> for Error
impl From<(StatusCode, ServerBodyError)> for Error
source§fn from((code, body): (StatusCode, ServerBodyError)) -> Self
fn from((code, body): (StatusCode, ServerBodyError)) -> Self
Converts to this type from the input type.