Enum libp2p_quic::ConnectionError[][src]

pub enum ConnectionError {
    VersionMismatch,
    TransportError(Error),
    ConnectionClosed(ConnectionClose),
    ApplicationClosed(ApplicationClose),
    Reset,
    TimedOut,
    LocallyClosed,
}

Reasons why a connection might be lost

Variants

VersionMismatch

The peer doesn’t implement any supported version

TransportError(Error)

The peer violated the QUIC specification as understood by this implementation

ConnectionClosed(ConnectionClose)

The peer’s QUIC stack aborted the connection automatically

ApplicationClosed(ApplicationClose)

The peer closed the connection

Reset

The peer is unable to continue processing this connection, usually due to having restarted

TimedOut

Communication with the peer has lapsed for longer than the negotiated idle timeout

If neither side is sending keep-alives, a connection will time out after a long enough idle period even if the peer is still reachable. See also TransportConfig::max_idle_timeout() and TransportConfig::keep_alive_interval().

LocallyClosed

The local application closed the connection

Trait Implementations

impl Clone for ConnectionError[src]

impl Debug for ConnectionError[src]

impl Display for ConnectionError[src]

impl Eq for ConnectionError[src]

impl Error for ConnectionError[src]

impl From<Close> for ConnectionError[src]

impl From<Error> for ConnectionError[src]

impl PartialEq<ConnectionError> for ConnectionError[src]

impl StructuralEq for ConnectionError[src]

impl StructuralPartialEq for ConnectionError[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>,