pub enum CandidateSource {
Local,
Observed {
by_node: Option<VarInt>,
},
Peer,
Predicted,
}
Expand description
How an address candidate was discovered
Variants§
Local
Local network interface
Observed
Observed by a bootstrap node
When present, by_node
identifies the coordinator that reported the
observation using its node identifier.
Peer
Received from peer via AddAddress frame
Predicted
Generated prediction for symmetric NAT
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 · 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 CandidateSource
impl Debug for CandidateSource
Source§impl PartialEq for CandidateSource
impl PartialEq for CandidateSource
impl Copy for CandidateSource
impl Eq 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 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
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
Compare self to
key
and return true
if they are equal.