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§
sourcefn on_action(&mut self, action: DownloadAction)
fn on_action(&mut self, action: DownloadAction)
Handle an action.
sourcefn poll(&mut self, cx: &mut Context<'_>) -> Poll<DownloadOutcome>
fn poll(&mut self, cx: &mut Context<'_>) -> Poll<DownloadOutcome>
Advance in progress requests if any