Enum actix_http::client::SendRequestError [−][src]
#[non_exhaustive]
pub enum SendRequestError {
Url(InvalidUrl),
Connect(ConnectError),
Send(Error),
Response(ParseError),
Http(HttpError),
H2(Error),
Timeout,
TunnelNotSupported,
Body(Error),
Custom(Box<dyn StdError>, Box<dyn Debug>),
}Expand description
A set of errors that can occur during request sending and response reading
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Url(InvalidUrl)Invalid URL
Connect(ConnectError)Failed to connect to host
Send(Error)Error sending request
Response(ParseError)Error parsing response
Http(HttpError)Http error
H2(Error)Http2 error
Response took too long
Tunnels are not supported for HTTP/2 connection
Body(Error)Error sending request body
Other errors that can occur after submitting a request.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SendRequestErrorimpl !Send for SendRequestErrorimpl !Sync for SendRequestErrorimpl Unpin for SendRequestErrorimpl !UnwindSafe for SendRequestError