pub enum ConnectorError {
Resolver(ResolveError),
NoRecords,
Timeout,
InvalidInput,
IoError(Error),
}Variants§
Resolver(ResolveError)
Failed to resolve the hostname
NoRecords
No dns records
Timeout
Connecting took too long
InvalidInput
Invalid input
IoError(Error)
Connection io error
Trait Implementations§
Source§impl Debug for ConnectorError
impl Debug for ConnectorError
Source§impl From<Error> for ConnectorError
impl From<Error> for ConnectorError
Source§impl From<ResolveError> for ConnectorError
impl From<ResolveError> for ConnectorError
Source§fn from(err: ResolveError) -> Self
fn from(err: ResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ConnectorError
impl !RefUnwindSafe for ConnectorError
impl Send for ConnectorError
impl Sync for ConnectorError
impl Unpin for ConnectorError
impl !UnwindSafe for ConnectorError
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