pub enum DiscoverySourceType {
Local,
ServerReflexive,
Predicted,
}
Expand description
Source type used during the NAT traversal discovery process
This enum identifies how a network address candidate was discovered, which affects its priority and reliability in the connection establishment process.
Variants§
Local
Locally discovered network interface addresses
These are addresses assigned to the local machine’s network interfaces and are typically the most reliable for direct connections.
ServerReflexive
Server reflexive addresses discovered via STUN/TURN-like servers
These are the public addresses that peers see when communicating with the local endpoint, as observed by bootstrap/coordinator nodes.
Predicted
Predicted addresses based on NAT behavior patterns
These are algorithmically predicted addresses that might work based on observed NAT traversal patterns and port prediction algorithms.
Trait Implementations§
Source§impl Clone for DiscoverySourceType
impl Clone for DiscoverySourceType
Source§fn clone(&self) -> DiscoverySourceType
fn clone(&self) -> DiscoverySourceType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DiscoverySourceType
impl Debug for DiscoverySourceType
Source§impl PartialEq for DiscoverySourceType
impl PartialEq for DiscoverySourceType
impl Copy for DiscoverySourceType
impl Eq for DiscoverySourceType
impl StructuralPartialEq for DiscoverySourceType
Auto Trait Implementations§
impl Freeze for DiscoverySourceType
impl RefUnwindSafe for DiscoverySourceType
impl Send for DiscoverySourceType
impl Sync for DiscoverySourceType
impl Unpin for DiscoverySourceType
impl UnwindSafe for DiscoverySourceType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.