Enum awc::error::ConnectError [−][src]
#[non_exhaustive]
pub enum ConnectError {
SslIsNotSupported,
SslError(OpensslError),
Resolver(Box<dyn Error>),
NoRecords,
H2(Error),
Timeout,
Disconnected,
Unresolved,
Io(Error),
}
Expand description
A set of errors that can occur while connecting to an HTTP host
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.
SslIsNotSupported
SSL feature is not enabled
SslError(OpensslError)
Tuple Fields
0: OpensslError
SSL error
Resolver(Box<dyn Error>)
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.
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
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