reth_network_api::events

Trait NetworkPeersEvents

Source
pub trait NetworkPeersEvents: Send + Sync {
    // Required method
    fn peer_events(&self) -> PeerEventStream;
}
Expand description

Provides peer event subscription for the network.

Required Methods§

Source

fn peer_events(&self) -> PeerEventStream

Creates a new peer event listener stream.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + NetworkPeersEvents + ?Sized> NetworkPeersEvents for &'a T
where &'a T: Send + Sync,

Source§

impl<T: NetworkPeersEvents + ?Sized> NetworkPeersEvents for Arc<T>
where Arc<T>: Send + Sync,

Implementors§