Enum actix_http::client::ConnectError [−][src]
#[non_exhaustive]
pub enum ConnectError {
SslIsNotSupported,
SslError(SslError),
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.
SSL feature is not enabled
SslError(SslError)
SSL error
Tuple Fields of SslError
0: SslError
Failed to resolve the hostname
No dns records
H2(Error)
Http2 error
Tuple Fields of H2
0: Error
Connecting took too long
Connector has been disconnected
Unresolved host name
Io(Error)
Connection io error
Tuple Fields of Io
0: Error
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.