[]Enum quic_p2p::Error

pub enum Error {
    Io(Error),
    Read(ReadError),
    BiDirectionalStreamAttempted(SocketAddr),
    Connect(ConnectError),
    Connection(ConnectionError),
    Endpoint(EndpointError),
    CertificateParseError(ParseError),
    DuplicateConnectionToPeer(SocketAddr),
    NoEndpointEchoServerFound,
    OneShotRx(RecvError),
    TLS(TLSError),
    Bincode(Error),
    Base64(DecodeError),
    Configuration(String),
    OperationNotAllowed,
    ConnectionCancelled,
    ChannelRecv(RecvError),
}

Error types encountered during the operation of this library.

Variants

Io(Error)

Error type associated with I/O operations.

Read(ReadError)

Errors encountered while reading from a QUIC stream.

BiDirectionalStreamAttempted(SocketAddr)

Error returned when a Bi-directional stream is attempted by a peer.

Connect(ConnectError)

Errors encountered while creating a new connection.

Connection(ConnectionError)

Errors explaining why an established connection might be lost.

Endpoint(EndpointError)

Errors encountered while creating a new endpoint.

CertificateParseError(ParseError)

Error encountered while parsing a certificate or key.

DuplicateConnectionToPeer(SocketAddr)

Error returned when a duplicate connection to a peer is attempted.

NoEndpointEchoServerFound

Error returned when an endpoint echo server is not found.

OneShotRx(RecvError)

Error returned when a receive operation on a channel fails.

TLS(TLSError)

Errors encountered while establishing TLS.

Bincode(Error)

Error produced when (de)serialisation is unsuccessful.

Base64(DecodeError)

Errors encountered while decoding Base64 values.

Configuration(String)

Error produced when configuration is not understood.

OperationNotAllowed

Error encountered while creating a new connection

ConnectionCancelled

Connection Cancelled

ChannelRecv(RecvError)

Failed receiving from an mpsc::channel.

Trait Implementations

impl From<Error> for Error

impl From<ReadError> for Error

impl From<ConnectError> for Error

impl From<ConnectionError> for Error

impl From<EndpointError> for Error

impl From<ParseError> for Error

impl From<RecvError> for Error

impl From<TLSError> for Error

impl From<Box<ErrorKind>> for Error

impl From<DecodeError> for Error

impl From<RecvError> for Error

impl Display for Error

impl Debug for Error[src]

impl Error for Error

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Unpin for Error

impl Sync for Error

impl Send for Error

impl !RefUnwindSafe for Error

impl !UnwindSafe for Error

Blanket Implementations

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

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

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<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<T> Erased for T