Enum generic_api_client::http::RequestError
source · 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>where
Self: Debug + Display,
impl<E, R> Error for RequestError<E, R>where
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()