pub enum ConnectError {
Resolver(ResolveError),
NoRecords,
InvalidInput,
Unresolved,
Io(Error),
}
Variants§
Resolver(ResolveError)
Failed to resolve the hostname
NoRecords
No dns records
InvalidInput
Invalid input
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 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 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
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