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§
sourcefn fetch_client(
&self,
) -> impl Future<Output = Result<impl BlockClient + 'static, RecvError>> + Send
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.