pub struct Error { /* private fields */ }
Implementations§
Source§impl Error
impl Error
Sourcepub fn is_reqwest(&self) -> bool
pub fn is_reqwest(&self) -> bool
Returns true if the error is from Reqwest
Sourcepub fn is_url_parse(&self) -> bool
pub fn is_url_parse(&self) -> bool
Returns true if the error is from UrlParse
Sourcepub fn status_code(&self) -> Option<StatusCode>
pub fn status_code(&self) -> Option<StatusCode>
Returns the status code as is
Trait Implementations§
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more