Enum awc::error::ConnectError [−][src]
pub enum ConnectError {
SslIsNotSupported,
Resolver(ResolveError),
NoRecords,
H2(Error),
Timeout,
Disconnected,
Unresolved,
Io(Error),
}
Expand description
A set of errors that can occur while connecting to an HTTP host
Variants
SslIsNotSupported
SSL feature is not enabled
Resolver(ResolveError)
Tuple Fields
0: ResolveError
Failed to resolve the hostname
NoRecords
No dns records
H2(Error)
Tuple Fields
0: Error
Http2 error
Timeout
Connecting took too long
Disconnected
Connector has been disconnected
Unresolved
Unresolved host name
Io(Error)
Tuple Fields
0: Error
Connection io error
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl !UnwindSafe for ConnectError
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