pub enum CandidateSource {
RelayIntroduction,
Pex,
Dht,
DnsAAAA,
DnsA,
StunReflexive,
ListenAddr,
PriorDial,
}Expand description
Where a candidate address was learned — provenance, kept for observability and so a future policy could weight sources. It does not affect the family-intersection rule (that is family-only).
Variants§
RelayIntroduction
Introduced by the relay during rendezvous.
Pex
Learned via peer exchange (PEX).
Dht
Learned from the distributed hash table.
DnsAAAA
A DNS AAAA (IPv6) record.
DnsA
A DNS A (IPv4) record.
StunReflexive
A server-reflexive address discovered via STUN.
ListenAddr
An address the peer advertised as a listen address.
PriorDial
An address that succeeded on a prior dial.
Trait Implementations§
Source§impl Clone for CandidateSource
impl Clone for CandidateSource
Source§fn clone(&self) -> CandidateSource
fn clone(&self) -> CandidateSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CandidateSource
Source§impl Debug for CandidateSource
impl Debug for CandidateSource
impl Eq for CandidateSource
Source§impl Hash for CandidateSource
impl Hash for CandidateSource
Source§impl Ord for CandidateSource
impl Ord for CandidateSource
Source§fn cmp(&self, other: &CandidateSource) -> Ordering
fn cmp(&self, other: &CandidateSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CandidateSource
impl PartialEq for CandidateSource
Source§impl PartialOrd for CandidateSource
impl PartialOrd for CandidateSource
impl StructuralPartialEq for CandidateSource
Auto Trait Implementations§
impl Freeze for CandidateSource
impl RefUnwindSafe for CandidateSource
impl Send for CandidateSource
impl Sync for CandidateSource
impl Unpin for CandidateSource
impl UnsafeUnpin for CandidateSource
impl UnwindSafe for CandidateSource
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