Struct bip_peer::PeerInfo [] [src]

pub struct PeerInfo { /* fields omitted */ }

Information that uniquely identifies a peer.

Equality oprations DO NOT INCLUDE Extensions as we define a unique peer as (address, peer_id, hash), so equality will be based on that tuple.

Methods

impl PeerInfo
[src]

[src]

Create a new PeerInfo object.

[src]

Retrieve the peer address.

[src]

Retrieve the peer id.

[src]

Retrieve the peer info hash.

[src]

Retrieve the extensions supported by this peer.

Trait Implementations

impl Eq for PeerInfo
[src]

impl Debug for PeerInfo
[src]

[src]

Formats the value using the given formatter.

impl Copy for PeerInfo
[src]

impl Clone for PeerInfo
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for PeerInfo
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl Hash for PeerInfo
[src]

[src]

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

1.3.0
[src]

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