Enum p2p::NatError []

pub enum NatError {
    Io(Error),
    Timer(TimerError),
    Serialisation(Error),
    AsymmetricDecipherFailed,
    PayloadSizeProhibitive,
    ZeroByteRead,
    RendezvousFailed,
    UdpRendezvousFailed,
    TcpRendezvousFailed,
    HolePunchMediatorFailedToStart,
    UdpHolePunchMediatorFailedToStart,
    TcpHolePunchMediatorFailedToStart,
    UdpRendezvousServerStartFailed,
    TcpRendezvousServerStartFailed,
    TcpRendezvousExchangerStartFailed,
    HolePunchFailed,
    UdpHolePunchFailed,
    TcpHolePunchFailed,
    InvalidTimerId,
    InvalidState,
    UnregisteredSocket,
    Unknown,
}

Nat-traversal's universal error type.

Variants

Io Error

Timer error

Serialization errors

Failed to decrypt the cipher text

Payload size is too large

Zero bytes were read - usually indicates EOF (graceful shutdown)

Rendezvous with server failed for both Tcp and Udp - could not obtain our external address

Udp Rendezvous with server failed - could not obtain our external address

Tcp Rendezvous with server failed - could not obtain our external address

Booting up Hole Punch Mediator failed

Booting up Udp Hole Punch Mediator failed

Booting up Tdp Hole Punch Mediator failed

Booting up Udp Rendezvous Server failed

Booting up Tcp Rendezvous Server failed

Booting up Tcp Rendezvous Server failed

Hole punch failed

Udp Hole punch failed

Tcp Hole punch failed

Timer ID is invalid

Invalid state - the state may already be active or is an operation is not supposed to be permitted for this state

Socket is not available

Unknown error

Trait Implementations

impl Debug for NatError
[src]

Formats the value using the given formatter.

impl Display for NatError

Formats the value using the given formatter. Read more

impl Error for NatError

A short description of the error. Read more

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

impl From<Error> for NatError

Performs the conversion.

impl From<TimerError> for NatError

Performs the conversion.

impl From<Error> for NatError

Performs the conversion.