pub enum ConnectError {
SslIsNotSupported,
Resolver(ResolveError),
NoRecords,
H2(Error),
Timeout,
Disconnected,
Unresolverd,
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)
Failed to resolve the hostname
NoRecords
No dns records
H2(Error)
Http2 error
Timeout
Connecting took too long
Disconnected
Connector has been disconnected
Unresolverd
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 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: Error) -> ConnectError
fn from(original: Error) -> ConnectError
Converts to this type from the input type.
Source§impl From<ResolveError> for ConnectError
impl From<ResolveError> for ConnectError
Source§fn from(original: ResolveError) -> ConnectError
fn from(original: ResolveError) -> ConnectError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ConnectError
impl !RefUnwindSafe for ConnectError
impl !UnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more