pub trait NetworkPeersEvents: Send + Sync {
// Required method
fn peer_events(&self) -> PeerEventStream;
}
Expand description
Provides peer event subscription for the network.
Required Methods§
Sourcefn peer_events(&self) -> PeerEventStream
fn peer_events(&self) -> PeerEventStream
Creates a new peer event listener stream.