Skip to main content

BlockAccessListsClient

Trait BlockAccessListsClient 

Source
pub trait BlockAccessListsClient: DownloadClient {
    type Output: Future<Output = Result<WithPeerId<BlockAccessLists>, RequestError>> + Send + Sync + Unpin;

    // Required method
    fn get_block_access_lists_with_priority(
        &self,
        hashes: Vec<FixedBytes<32>>,
        priority: Priority,
    ) -> Self::Output;

    // Provided method
    fn get_block_access_lists(
        &self,
        hashes: Vec<FixedBytes<32>>,
    ) -> Self::Output { ... }
}
Expand description

A client capable of downloading block access lists.

Required Associated Types§

Source

type Output: Future<Output = Result<WithPeerId<BlockAccessLists>, RequestError>> + Send + Sync + Unpin

The bal type this client fetches.

Required Methods§

Source

fn get_block_access_lists_with_priority( &self, hashes: Vec<FixedBytes<32>>, priority: Priority, ) -> Self::Output

Fetches the block access lists for given hashes with priority

Provided Methods§

Source

fn get_block_access_lists(&self, hashes: Vec<FixedBytes<32>>) -> Self::Output

Fetches the block access lists for given hashes.

Implementations on Foreign Types§

Source§

impl<'a, T> BlockAccessListsClient for &'a T

Source§

impl<T> BlockAccessListsClient for Box<T>

Source§

impl<T> BlockAccessListsClient for Arc<T>

Implementors§