Enum nat_traversal::SimpleUdpHolePunchServerNewError []

pub enum SimpleUdpHolePunchServerNewError {
    CreateMappedSocket {
        err: MappedUdpSocketNewError,
    },
    SetSocketTimeout {
        err: Error,
    },
}

Errors returned by SimpleUdpHolePunchServer::new

Variants

CreateMappedSocket

Error creating a mapped udp socket to listen on.

Fields

err: MappedUdpSocketNewError
SetSocketTimeout

Error setting the timeout on the server's listening socket.

Fields

err: Error

Trait Implementations

impl Debug for SimpleUdpHolePunchServerNewError
[src]

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

Formats the value using the given formatter.

impl Display for SimpleUdpHolePunchServerNewError

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

Formats the value using the given formatter.

impl Error for SimpleUdpHolePunchServerNewError

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