pub enum NatTraversalError {
Show 15 variants
NoBootstrapNodes,
NoCandidatesFound,
CandidateDiscoveryFailed(String),
CoordinationFailed(String),
HolePunchingFailed,
PunchingFailed(String),
ValidationFailed(String),
ValidationTimeout,
NetworkError(String),
ConfigError(String),
ProtocolError(String),
Timeout,
ConnectionFailed(String),
TraversalFailed(String),
PeerNotConnected,
}
Expand description
Errors that can occur during NAT traversal
Variants§
NoBootstrapNodes
No bootstrap nodes available
NoCandidatesFound
Failed to discover any candidates
CandidateDiscoveryFailed(String)
Candidate discovery failed
CoordinationFailed(String)
Coordination with bootstrap failed
HolePunchingFailed
All hole punching attempts failed
PunchingFailed(String)
Hole punching failed with specific reason
ValidationFailed(String)
Path validation failed
ValidationTimeout
Connection validation timed out
NetworkError(String)
Network error during traversal
ConfigError(String)
Configuration error
ProtocolError(String)
Internal protocol error
Timeout
NAT traversal timed out
ConnectionFailed(String)
Connection failed after successful traversal
TraversalFailed(String)
General traversal failure
PeerNotConnected
Peer not connected
Trait Implementations§
Source§impl Clone for NatTraversalError
impl Clone for NatTraversalError
Source§fn clone(&self) -> NatTraversalError
fn clone(&self) -> NatTraversalError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NatTraversalError
impl Debug for NatTraversalError
Source§impl Display for NatTraversalError
impl Display for NatTraversalError
Source§impl Error for NatTraversalError
impl Error for NatTraversalError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<NatTraversalError> for P2PError
impl From<NatTraversalError> for P2PError
Source§fn from(source: NatTraversalError) -> Self
fn from(source: NatTraversalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NatTraversalError
impl RefUnwindSafe for NatTraversalError
impl Send for NatTraversalError
impl Sync for NatTraversalError
impl Unpin for NatTraversalError
impl UnwindSafe for NatTraversalError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more