pub enum IpVoteSource {
Dht(u64),
Nat,
Tracker,
}Expand description
Source of an external IP observation.
Variants§
Dht(u64)
KRPC response ip field from a DHT node.
Nat
NAT traversal (UPnP, NAT-PMP, PCP).
Tracker
Tracker announce response.
Implementations§
Trait Implementations§
Source§impl Clone for IpVoteSource
impl Clone for IpVoteSource
Source§fn clone(&self) -> IpVoteSource
fn clone(&self) -> IpVoteSource
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 IpVoteSource
Source§impl Debug for IpVoteSource
impl Debug for IpVoteSource
impl Eq for IpVoteSource
Source§impl Hash for IpVoteSource
impl Hash for IpVoteSource
Source§impl PartialEq for IpVoteSource
impl PartialEq for IpVoteSource
Source§fn eq(&self, other: &IpVoteSource) -> bool
fn eq(&self, other: &IpVoteSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IpVoteSource
Auto Trait Implementations§
impl Freeze for IpVoteSource
impl RefUnwindSafe for IpVoteSource
impl Send for IpVoteSource
impl Sync for IpVoteSource
impl Unpin for IpVoteSource
impl UnsafeUnpin for IpVoteSource
impl UnwindSafe for IpVoteSource
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