Enum libp2p_quic::ConnectError[][src]

pub enum ConnectError {
    EndpointStopping,
    TooManyConnections,
    InvalidDnsName(String),
    Config(ConfigError),
    InvalidRemoteAddress(SocketAddr),
}

Errors in the parameters being used to create a new connection

These arise before any I/O has been performed.

Variants

EndpointStopping

The endpoint can no longer create new connections

Indicates that a necessary component of the endpoint has been dropped or otherwise disabled.

TooManyConnections

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

impl Clone for ConnectError[src]

impl Debug for ConnectError[src]

impl Display for ConnectError[src]

impl Eq for ConnectError[src]

impl Error for ConnectError[src]

impl From<ConnectError> for QuicError[src]

impl PartialEq<ConnectError> for ConnectError[src]

impl StructuralEq for ConnectError[src]

impl StructuralPartialEq for ConnectError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,