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§

source

fn external_addresses(&self) -> Vec<Multiaddr, Global>

Returns the local external addresses.

source

fn local_peer_id(&self) -> PeerId

Returns the local Peer ID.

Implementations on Foreign Types§

source§

impl<T> NetworkStateInfo for Arc<T>where T: NetworkStateInfo + ?Sized,

Implementors§

source§

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