Enum awc::error::SendRequestError [−][src]
pub enum SendRequestError {
Url(InvalidUrl),
Connect(ConnectError),
Send(Error),
Response(ParseError),
Http(Error),
H2(Error),
Timeout,
TunnelNotSupported,
Body(Error),
}
Expand description
A set of errors that can occur during request sending and response reading
Variants
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(Error)
Tuple Fields
0: Error
Http error
H2(Error)
Tuple Fields
0: Error
Http2 error
Timeout
Response took too long
TunnelNotSupported
Tunnels are not supported for http2 connection
Body(Error)
Tuple Fields
0: Error
Error sending request body
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
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
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