pub enum RequestError<E, R> {
SendRequest(Error),
ReceiveResponse(Error),
BuildRequestError(E),
ResponseHandleError(R),
}
Expand description
An enum
that represents errors that could be returned by Client::request()
Type parameter R
is RequestHandler::Unsuccessful.
Variants§
SendRequest(Error)
An error which occurred while sending a HTTP request.
ReceiveResponse(Error)
An error which occurred while receiving a HTTP response.
BuildRequestError(E)
Error occurred in RequestHandler::build_request().
ResponseHandleError(R)
An error which was returned by RequestHandler.
Trait Implementations§
Source§impl<E, R> Display for RequestError<E, R>
impl<E, R> Display for RequestError<E, R>
Source§impl<E, R> Error for RequestError<E, R>
impl<E, R> Error for RequestError<E, R>
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()
Auto Trait Implementations§
impl<E, R> Freeze for RequestError<E, R>
impl<E, R> !RefUnwindSafe for RequestError<E, R>
impl<E, R> Send for RequestError<E, R>
impl<E, R> Sync for RequestError<E, R>
impl<E, R> Unpin for RequestError<E, R>
impl<E, R> !UnwindSafe for RequestError<E, R>
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