Trait bip_handshake::DiscoveryInfo [] [src]

pub trait DiscoveryInfo {
    fn port(&self) -> u16;
fn peer_id(&self) -> PeerId; }

Trait for advertisement information that other peers can discover.

Required Methods

Retrieve our public port that we advertise to others.

Retrieve our PeerId that we advertise to others.

Implementations on Foreign Types

impl<'a, T> DiscoveryInfo for &'a T where
    T: DiscoveryInfo
[src]

[src]

[src]

Implementors