[][src]Enum quinn::ConnectionError

pub enum ConnectionError {
    VersionMismatch,
    TransportError(Error),
    ConnectionClosed {
        reason: ConnectionClose,
    },
    ApplicationClosed {
        reason: 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

The peer's QUIC stack aborted the connection automatically.

Fields of ConnectionClosed

reason: ConnectionClose

The reason for closing the connection

ApplicationClosed

The peer closed the connection.

Fields of ApplicationClosed

reason: ApplicationClose

The reason for closing the connection

Reset

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

TimedOut

The peer has become unreachable.

LocallyClosed

The local application closed the connection.

Trait Implementations

impl Error for ConnectionError[src]

impl From<Close> for ConnectionError[src]

impl From<Error> for ConnectionError[src]

impl From<Error> for ConnectionError[src]

impl Debug for ConnectionError[src]

impl Display for ConnectionError[src]

impl Clone for ConnectionError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> 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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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