pub enum Error {
    Ssl(Error),
    Io(Error),
    ConnectionNotFound,
    WouldBlock,
    WouldBlockMidHandshake(MidHandshakeSslStream<UdpConn>),
}
Expand description

I/O errors that sockets secured by DTLS can encounter

Variants

Ssl(Error)

There was in issue within openssl - this is more likely to be a bug in kwap than a bug in openssl.

Io(Error)

There was an IO error raised by the underlying socket

ConnectionNotFound

A message was received from / outbound to an address that we haven’t established a connection with

WouldBlock

The operation would block

WouldBlockMidHandshake(MidHandshakeSslStream<UdpConn>)

TODO probably unnecessary

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.