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)
Io Error
Timer(TimerError)
Timer error
Serialisation(Error)
Serialization errors
AsymmetricDecipherFailed
Failed to decrypt the cipher text
PayloadSizeProhibitive
Payload size is too large
ZeroByteRead
Zero bytes were read - usually indicates EOF (graceful shutdown)
RendezvousFailed
Rendezvous with server failed for both Tcp and Udp - could not obtain our external address
UdpRendezvousFailed
Udp Rendezvous with server failed - could not obtain our external address
TcpRendezvousFailed
Tcp Rendezvous with server failed - could not obtain our external address
HolePunchMediatorFailedToStart
Booting up Hole Punch Mediator failed
UdpHolePunchMediatorFailedToStart
Booting up Udp Hole Punch Mediator failed
TcpHolePunchMediatorFailedToStart
Booting up Tdp Hole Punch Mediator failed
UdpRendezvousServerStartFailed
Booting up Udp Rendezvous Server failed
TcpRendezvousServerStartFailed
Booting up Tcp Rendezvous Server failed
TcpRendezvousExchangerStartFailed
Booting up Tcp Rendezvous Server failed
HolePunchFailed
Hole punch failed
UdpHolePunchFailed
Udp Hole punch failed
TcpHolePunchFailed
Tcp Hole punch failed
InvalidTimerId
Timer ID is invalid
InvalidState
Invalid state - the state may already be active or is an operation is not supposed to be permitted for this state
UnregisteredSocket
Socket is not available
Unknown
Unknown error
Trait Implementations
impl Debug for NatError
[src]
impl Display for NatError
impl Error for NatError
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
impl From<Error> for NatError
impl From<TimerError> for NatError
fn from(e: TimerError) -> NatError
Performs the conversion.