pub enum ReqwestError<E: Error + Send> {
Session(SessionError),
Reqwest(Error),
Middleware(Error),
Json(Error),
Status(u16),
SignatureError(SignatureError<E>),
}Expand description
Errors produced when sending requests with the client
Variants§
Session(SessionError)
The session prevented the request from continuing
Reqwest(Error)
Reqwest errors
Middleware(Error)
Middleware errors
Json(Error)
Failed to serialize the json request body
Status(u16)
Request failed with non-2xx status
SignatureError(SignatureError<E>)
Errors signing the request
Trait Implementations§
Source§impl<E: Error + Send> Display for ReqwestError<E>where
SignatureError<E>: Display,
impl<E: Error + Send> Display for ReqwestError<E>where
SignatureError<E>: Display,
Source§impl<E: Error + Send> Error for ReqwestError<E>
impl<E: Error + Send> Error for ReqwestError<E>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl<E: Error + Send> From<SessionError> for ReqwestError<E>
impl<E: Error + Send> From<SessionError> for ReqwestError<E>
Source§fn from(source: SessionError) -> Self
fn from(source: SessionError) -> Self
Converts to this type from the input type.
Source§impl<E: Error + Send> From<SignatureError<E>> for ReqwestError<E>
impl<E: Error + Send> From<SignatureError<E>> for ReqwestError<E>
Source§fn from(source: SignatureError<E>) -> Self
fn from(source: SignatureError<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for ReqwestError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for ReqwestError<E>
impl<E> Send for ReqwestError<E>
impl<E> Sync for ReqwestError<E>where
E: Sync,
impl<E> Unpin for ReqwestError<E>where
E: Unpin,
impl<E> !UnwindSafe for ReqwestError<E>
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