Trait reth_engine_tree::download::BlockDownloader

source ·
pub trait BlockDownloader: Send + Sync {
    // Required methods
    fn on_action(&mut self, action: DownloadAction);
    fn poll(&mut self, cx: &mut Context<'_>) -> Poll<DownloadOutcome>;
}
Expand description

A trait that can download blocks on demand.

Required Methods§

source

fn on_action(&mut self, action: DownloadAction)

Handle an action.

source

fn poll(&mut self, cx: &mut Context<'_>) -> Poll<DownloadOutcome>

Advance in progress requests if any

Implementors§

source§

impl BlockDownloader for NoopBlockDownloader

source§

impl<Client> BlockDownloader for BasicBlockDownloader<Client>
where Client: BlockClient + 'static,