pub enum PeerOrigin {
Discovered,
Explicit,
Incoming,
}Expand description
How we learned about this peer
Variants§
Discovered
Found via DHT lookup (we initiate connection)
Explicit
Added explicitly via join_peer
Incoming
They connected to us
Implementations§
Source§impl PeerOrigin
impl PeerOrigin
Trait Implementations§
Source§impl Clone for PeerOrigin
impl Clone for PeerOrigin
Source§fn clone(&self) -> PeerOrigin
fn clone(&self) -> PeerOrigin
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 PeerOrigin
Source§impl Debug for PeerOrigin
impl Debug for PeerOrigin
Source§impl Default for PeerOrigin
impl Default for PeerOrigin
Source§fn default() -> PeerOrigin
fn default() -> PeerOrigin
Returns the “default value” for a type. Read more
impl Eq for PeerOrigin
Source§impl PartialEq for PeerOrigin
impl PartialEq for PeerOrigin
Source§fn eq(&self, other: &PeerOrigin) -> bool
fn eq(&self, other: &PeerOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PeerOrigin
Auto Trait Implementations§
impl Freeze for PeerOrigin
impl RefUnwindSafe for PeerOrigin
impl Send for PeerOrigin
impl Sync for PeerOrigin
impl Unpin for PeerOrigin
impl UnsafeUnpin for PeerOrigin
impl UnwindSafe for PeerOrigin
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