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§

source

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§

source§

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

source§

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

source§

impl<T: BlockDownloaderProvider + ?Sized> BlockDownloaderProvider for Arc<T>

source§

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

Implementors§