pub enum PeerSource {
Seed,
Connection,
Relay,
Coordination,
Merge,
Unknown,
}Expand description
How we discovered this peer
Variants§
Seed
User-provided bootstrap seed
Connection
Discovered via active connection
Relay
Discovered via relay traffic
Coordination
Discovered via NAT coordination
Merge
Merged from another cache instance
Unknown
Unknown source (legacy entries)
Trait Implementations§
Source§impl Clone for PeerSource
impl Clone for PeerSource
Source§fn clone(&self) -> PeerSource
fn clone(&self) -> PeerSource
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 PeerSource
impl Debug for PeerSource
Source§impl Default for PeerSource
impl Default for PeerSource
Source§fn default() -> PeerSource
fn default() -> PeerSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PeerSource
impl<'de> Deserialize<'de> for PeerSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PeerSource
impl PartialEq for PeerSource
Source§impl Serialize for PeerSource
impl Serialize for PeerSource
impl Copy for PeerSource
impl Eq for PeerSource
impl StructuralPartialEq for PeerSource
Auto Trait Implementations§
impl Freeze for PeerSource
impl RefUnwindSafe for PeerSource
impl Send for PeerSource
impl Sync for PeerSource
impl Unpin for PeerSource
impl UnwindSafe for PeerSource
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.