Trait sc_network::NetworkStateInfo
source · pub trait NetworkStateInfo {
// Required methods
fn external_addresses(&self) -> Vec<Multiaddr, Global> ⓘ;
fn local_peer_id(&self) -> PeerId;
}
Expand description
Trait for providing information about the local network state
Required Methods§
sourcefn local_peer_id(&self) -> PeerId
fn local_peer_id(&self) -> PeerId
Returns the local Peer ID.