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
fn port(&self) -> u16
Retrieve our public port that we advertise to others.
fn peer_id(&self) -> PeerId
Retrieve our PeerId
that we advertise to others.
Implementors
impl<S> DiscoveryInfo for Handshaker<S>
impl DiscoveryInfo for HandshakerSink
impl<'a, T> DiscoveryInfo for &'a T where
T: DiscoveryInfo,