pub enum ReqwestClientError {
ConvertToHttpRequest {
source: Error,
},
ConvertToReqwestRequest {
source: Error,
},
RequestExecution {
source: Error,
},
RetrieveResponseBody {
source: Error,
},
BuildHttpResponseBody {
source: Error,
},
ReadResponse {
source: Error,
},
}Expand description
Errors that result from performing HTTP requests through the crate::ReqwestClient.
Variants§
ConvertToHttpRequest
The conversion from a http_request_derive::HttpRequest to a http::Request has failed.
ConvertToReqwestRequest
The conversion from a http::Request to a reqwest::Request has failed.
RequestExecution
The request execution has failed.
RetrieveResponseBody
Retrieval of the response body from the reqwest::Response has failed.
BuildHttpResponseBody
Building the http::Response has failed.
ReadResponse
Reading the response from the http::Response has failed.
Trait Implementations§
Source§impl Debug for ReqwestClientError
impl Debug for ReqwestClientError
Source§impl Display for ReqwestClientError
impl Display for ReqwestClientError
Source§impl Error for ReqwestClientError
impl Error for ReqwestClientError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ReqwestClientError
impl ErrorCompat for ReqwestClientError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreAuto Trait Implementations§
impl !Freeze for ReqwestClientError
impl !RefUnwindSafe for ReqwestClientError
impl Send for ReqwestClientError
impl Sync for ReqwestClientError
impl Unpin for ReqwestClientError
impl !UnwindSafe for ReqwestClientError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.