pub enum Error {
Reqwest(Error),
Server(ServerError),
}Variants
Reqwest(Error)
Server(ServerError)
Implementations
sourceimpl 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
sourceimpl From<(StatusCode, ServerBodyError)> for Error
impl From<(StatusCode, ServerBodyError)> for Error
sourcefn from((code, body): (StatusCode, ServerBodyError)) -> Self
fn from((code, body): (StatusCode, ServerBodyError)) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more