Struct p2p::PeerInfo[][src]

pub struct PeerInfo {
    pub addr: SocketAddr,
    pub pub_key: PublicKey,
}

Information necessary to connect to peer.

Fields

Peer IP address.

Peer public key.

Methods

impl PeerInfo
[src]

Constructs peer info.

Constructs peer info with random generated public key.

Trait Implementations

impl PartialEq for PeerInfo
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for PeerInfo
[src]

impl Hash for PeerInfo
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for PeerInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PeerInfo
[src]

Formats the value using the given formatter. Read more

impl Display for PeerInfo
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PeerInfo

impl Sync for PeerInfo