Enum nat_traversal::MappedUdpSocketMapError []

pub enum MappedUdpSocketMapError {
    SocketLocalAddr {
        err: Error,
    },
    RecvError {
        err: Error,
    },
    SendError {
        err: Error,
    },
}

Errors returned by MappedUdpSocket::map

Variants

SocketLocalAddr

Error getting the local address of the socket.

Fields

err: Error
RecvError

IO error receiving data on the socket.

Fields

err: Error
SendError

IO error sending data on the socket.

Fields

err: Error

Trait Implementations

impl Debug for MappedUdpSocketMapError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for MappedUdpSocketMapError

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Error for MappedUdpSocketMapError

fn description(&self) -> &str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>

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