Enum awc::error::SendRequestError [−][src]
#[non_exhaustive]
pub enum SendRequestError {
Url(InvalidUrl),
Connect(ConnectError),
Send(Error),
Response(ParseError),
Http(HttpError),
H2(Error),
Timeout,
TunnelNotSupported,
Body(Box<dyn Error>),
Custom(Box<dyn Error>, 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
Url(InvalidUrl)
Tuple Fields
0: InvalidUrl
Invalid URL
Connect(ConnectError)
Tuple Fields
0: ConnectError
Failed to connect to host
Send(Error)
Tuple Fields
0: Error
Error sending request
Response(ParseError)
Tuple Fields
0: ParseError
Error parsing response
Http(HttpError)
Tuple Fields
0: HttpError
Http error
H2(Error)
Tuple Fields
0: Error
Http2 error
Timeout
Response took too long
TunnelNotSupported
Tunnels are not supported for HTTP/2 connection
Body(Box<dyn Error>)
Error sending request body
Custom(Box<dyn Error>, Box<dyn Debug>)
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.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for SendRequestError
impl !Send for SendRequestError
impl !Sync for SendRequestError
impl Unpin for SendRequestError
impl !UnwindSafe for SendRequestError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more