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.

Implementors