#[non_exhaustive]pub enum ConnectError {
EndpointStopping,
TooManyAssociations,
InvalidDnsName(String),
InvalidRemoteAddress(SocketAddr),
NoDefaultClientConfig,
ZeroSctpPort,
}Expand description
Errors in the parameters being used to create a new association
These arise before any I/O has been performed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EndpointStopping
The endpoint can no longer create new associations
Indicates that a necessary component of the endpoint has been dropped or otherwise disabled.
TooManyAssociations
The number of active associations on the local endpoint is at the limit
Try using longer association IDs.
InvalidDnsName(String)
The domain name supplied was malformed
InvalidRemoteAddress(SocketAddr)
The remote SocketAddr supplied was malformed
Examples include attempting to connect to port 0, or using an inappropriate address family.
NoDefaultClientConfig
No default client configuration was set up
Use Endpoint::connect_with to specify a client configuration.
ZeroSctpPort
The transport configuration names port 0 as this endpoint’s SCTP port
(with_sctp_port) or the peer’s
(with_remote_sctp_port): RFC 9260
section 3.1, port 0 MUST NOT be used as a source or destination port.
Trait Implementations§
Source§impl Clone for ConnectError
impl Clone for ConnectError
Source§impl Debug for ConnectError
impl Debug for ConnectError
Source§impl Display for ConnectError
impl Display for ConnectError
impl Eq for ConnectError
Source§impl Error for ConnectError
impl Error for ConnectError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()