Enum nat_traversal::TcpPunchHoleError []

pub enum TcpPunchHoleError {
    SocketLocalAddr {
        err: Error,
    },
    NewReusablyBoundTcpSocket {
        err: NewReusablyBoundTcpSocketError,
    },
    Listen {
        err: Error,
    },
    TimedOut {
        warnings: Vec<TcpPunchHoleWarning>,
    },
    DecideStream {
        errors: Vec<TcpPunchHoleBrokenStream>,
    },
}

Variants

SocketLocalAddr

Error getting the local address of the provided socket.

Fields

err: Error
NewReusablyBoundTcpSocket

Error binding another socket to the same local address as the provided socket.

Fields

err: NewReusablyBoundTcpSocketError
Listen

Error listening on the provided socket.

Fields

err: Error
TimedOut

Tcp hole punching timed out without making a successful connection.

Fields

warnings: Vec<TcpPunchHoleWarning>
DecideStream

Multiple streams were successfully punched to the peer but all of them died.

Fields

errors: Vec<TcpPunchHoleBrokenStream>

Trait Implementations

impl Debug for TcpPunchHoleError
[src]

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

Formats the value using the given formatter.

impl Display for TcpPunchHoleError

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

Formats the value using the given formatter.

impl Error for TcpPunchHoleError

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