[][src]Trait sc_network::NetworkStateInfo

pub trait NetworkStateInfo {
    pub fn external_addresses(&self) -> Vec<Multiaddr>;
pub fn local_peer_id(&self) -> PeerId; }

Trait for providing information about the local network state

Required methods

pub fn external_addresses(&self) -> Vec<Multiaddr>

Returns the local external addresses.

pub fn local_peer_id(&self) -> PeerId

Returns the local Peer ID.

Loading content...

Implementors

impl<B, H> NetworkStateInfo for NetworkService<B, H> where
    B: Block,
    H: ExHashT
[src]

pub fn external_addresses(&self) -> Vec<Multiaddr>[src]

Returns the local external addresses.

pub fn local_peer_id(&self) -> PeerId[src]

Returns the local Peer ID.

Loading content...