pub enum Connect {
MultipleDomains,
ParseUrl(ParseError),
Domain,
Port,
ParseDomain(ParseError),
TrustDns(Box<ResolveError>),
StdDns(Error),
NoIp,
ConnectConfig(ConnectError),
Config(Config),
}
Expand description
Error connecting to a server with
Endpoint::connect
.
Variants§
MultipleDomains
The passed Certificate
has multiple domains,
this is not supported with
Endpoint::connect_pinned
.
ParseUrl(ParseError)
Failed to parse URL.
Domain
URL didn’t contain a domain.
Port
URL didn’t contain a port.
ParseDomain(ParseError)
Failed to parse domain.
TrustDns(Box<ResolveError>)
Failed to resolve domain with trust-dns
.
StdDns(Error)
Failed to resolve domain with
ToSocketAddrs
.
NoIp
Found no IP address for that domain.
ConnectConfig(ConnectError)
Configuration needed to connect to a server is faulty.
Config(Config)
Configuration faulty.
Trait Implementations§
§impl Error for Connect
impl Error for Connect
§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()
§impl From<Box<ResolveError>> for Connect
impl From<Box<ResolveError>> for Connect
§fn from(source: Box<ResolveError>) -> Connect
fn from(source: Box<ResolveError>) -> Connect
Converts to this type from the input type.
§impl From<ConnectError> for Connect
impl From<ConnectError> for Connect
§fn from(source: ConnectError) -> Connect
fn from(source: ConnectError) -> Connect
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Connect
impl Send for Connect
impl Sync for Connect
impl Unpin for Connect
impl !UnwindSafe for Connect
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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