Trait reth::network::BlockDownloaderProvider

pub trait BlockDownloaderProvider {
    // Required method
    fn fetch_client(
        &self,
    ) -> impl Future<Output = Result<impl BlockClient + 'static, RecvError>> + Send;
}
Expand description

Provides client for downloading blocks.

Required Methods§

fn fetch_client( &self, ) -> impl Future<Output = Result<impl BlockClient + 'static, RecvError>> + Send

Returns a new [BlockClient], used for fetching blocks from peers.

The client is the entrypoint for sending block requests to the network.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

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

§

fn fetch_client( &self, ) -> impl Future<Output = Result<impl BlockClient + 'static, RecvError>> + Send

§

impl<T> BlockDownloaderProvider for Arc<T>

§

fn fetch_client( &self, ) -> impl Future<Output = Result<impl BlockClient + 'static, RecvError>> + Send

Implementors§