pub trait SnapClient: DownloadClient {
type Output: Future<Output = PeerRequestResult<AccountRangeMessage>> + Send + Sync + Unpin;
// Required method
fn get_account_range_with_priority(
&self,
request: GetAccountRangeMessage,
priority: Priority,
) -> Self::Output;
// Provided method
fn get_account_range(&self, request: GetAccountRangeMessage) -> Self::Output { ... }
}
Expand description
The snap sync downloader client
Required Associated Types§
Required Methods§
Sourcefn get_account_range_with_priority(
&self,
request: GetAccountRangeMessage,
priority: Priority,
) -> Self::Output
fn get_account_range_with_priority( &self, request: GetAccountRangeMessage, priority: Priority, ) -> Self::Output
Sends the account range request to the p2p network with priority set and returns the account range response received from a peer.
Provided Methods§
Sourcefn get_account_range(&self, request: GetAccountRangeMessage) -> Self::Output
fn get_account_range(&self, request: GetAccountRangeMessage) -> Self::Output
Sends the account range request to the p2p network and returns the account range response received from a peer.