Enum awc::error::ConnectError
source · #[non_exhaustive]pub enum ConnectError {
SslIsNotSupported,
SslError(Error),
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(Error)
Available on crate feature
openssl
only.SSL error
Resolver(Box<dyn Error>)
Failed to resolve the hostname
NoRecords
No dns records
H2(Error)
Http2 error
Timeout
Connecting took too long
Disconnected
Connector has been disconnected
Unresolved
Unresolved host name
Io(Error)
Connection io error
Trait Implementations§
source§impl Debug for ConnectError
impl Debug for ConnectError
source§impl Display for ConnectError
impl Display for ConnectError
source§impl Error for ConnectError
impl Error for ConnectError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ConnectError> for ConnectError
impl From<ConnectError> for ConnectError
source§fn from(err: ConnectError) -> ConnectError
fn from(err: ConnectError) -> ConnectError
Converts to this type from the input type.
source§impl From<ConnectError> for SendRequestError
impl From<ConnectError> for SendRequestError
source§fn from(original: ConnectError) -> SendRequestError
fn from(original: ConnectError) -> SendRequestError
Converts to this type from the input type.
source§impl From<Error> for ConnectError
impl From<Error> for ConnectError
source§fn from(original: Error) -> ConnectError
fn from(original: Error) -> ConnectError
Converts to this type from the input type.
source§impl From<Error> for ConnectError
impl From<Error> for ConnectError
source§fn from(original: OpensslError) -> ConnectError
fn from(original: OpensslError) -> ConnectError
Converts to this type from the input type.
source§impl From<Error> for ConnectError
impl From<Error> for ConnectError
source§fn from(original: Error) -> ConnectError
fn from(original: Error) -> ConnectError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ConnectError
impl !RefUnwindSafe for ConnectError
impl !Send for ConnectError
impl !Sync for ConnectError
impl Unpin for ConnectError
impl !UnwindSafe for ConnectError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more