reth_engine_tree::download

Trait 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§