Trait sc_network::NetworkStateInfo
source · [−]pub trait NetworkStateInfo {
fn external_addresses(&self) -> Vec<Multiaddr>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
fn local_peer_id(&self) -> PeerId;
}
Expand description
Trait for providing information about the local network state
Required methods
Returns the local external addresses.
fn local_peer_id(&self) -> PeerId
fn local_peer_id(&self) -> PeerId
Returns the local Peer ID.