Enum libp2p_quic::ConnectError [−][src]
pub enum ConnectError { EndpointStopping, TooManyConnections, InvalidDnsName(String), Config(ConfigError), InvalidRemoteAddress(SocketAddr), }
Expand description
Errors in the parameters being used to create a new connection
These arise before any I/O has been performed.
Variants
The endpoint can no longer create new connections
Indicates that a necessary component of the endpoint has been dropped or otherwise disabled.
The number of active connections on the local endpoint is at the limit
Try using longer connection IDs.
InvalidDnsName(String)
The domain name supplied was malformed
Config(ConfigError)
The transport configuration was invalid
InvalidRemoteAddress(SocketAddr)
The remote SocketAddr
supplied was malformed
Examples include attempting to connect to port 0, or using an inappropriate address family.
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ConnectError
impl Send for ConnectError
impl Sync for ConnectError
impl Unpin for ConnectError
impl UnwindSafe for ConnectError
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self