reth::network

Trait PeersHandleProvider

pub trait PeersHandleProvider {
    // Required method
    fn peers_handle(&self) -> &PeersHandle;
}
Expand description

Provides an API for managing the peers of the network.

Required Methods§

fn peers_handle(&self) -> &PeersHandle

Returns the [PeersHandle] that can be cloned and shared.

The [PeersHandle] can be used to interact with the network’s peer set.

Implementations on Foreign Types§

§

impl<'a, T> PeersHandleProvider for &'a T
where T: 'a + PeersHandleProvider + ?Sized,

§

fn peers_handle(&self) -> &PeersHandle

§

impl<T> PeersHandleProvider for Arc<T>

§

fn peers_handle(&self) -> &PeersHandle

Implementors§