Enum nakamoto_common::p2p::peer::Source
source · pub enum Source {
Peer(SocketAddr),
Dns,
Imported,
}
Expand description
Address source. Specifies where an address originated from.
Variants
Peer(SocketAddr)
An address that was shared by another peer.
Dns
An address that came from a DNS seed.
Imported
An address that came from some source external to the system, eg. specified by the user or added directly to the address manager.
Trait Implementations
impl Copy for Source
impl Eq for Source
impl StructuralEq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnwindSafe for Source
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more