Enum qp2p::ConnectionError[]

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

impl Debug for ConnectionError

impl Display for ConnectionError

impl Eq for ConnectionError

impl Error for ConnectionError

impl From<Close> for ConnectionError

impl From<ConnectionError> for Error[src]

impl From<Error> for ConnectionError

impl PartialEq<ConnectionError> for ConnectionError

impl StructuralEq for ConnectionError

impl StructuralPartialEq for ConnectionError

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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> 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>,