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
Failed to resolve the hostname
No dns records
H2(Error)Http2 error
Connecting took too long
Connector has been disconnected
Unresolved host name
Io(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 ConnectErrorimpl !Send for ConnectErrorimpl !Sync for ConnectErrorimpl Unpin for ConnectErrorimpl !UnwindSafe for ConnectError