pub enum Error<T>where
T: Error + 'static,{
Reqwest(T),
Http(Error),
Io(Error),
Other(String),
}
Expand description
Error type returned by failed reqwest HTTP requests.
Variants§
Reqwest(T)
Error returned by reqwest crate.
Http(Error)
Non-reqwest HTTP error.
Io(Error)
I/O error.
Other(String)
Other error.
Trait Implementations§
source§impl<T> Error for Error<T>where
T: Error + 'static,
Self: Debug + Display,
impl<T> Error for Error<T>where T: Error + 'static, Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Error<T>
impl<T> Send for Error<T>where T: Send,
impl<T> Sync for Error<T>where T: Sync,
impl<T> Unpin for Error<T>where T: Unpin,
impl<T> !UnwindSafe for Error<T>
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