reth_storage_api

Trait BlockBodyIndicesProvider

Source
pub trait BlockBodyIndicesProvider: Send + Sync {
    // Required method
    fn block_body_indices(
        &self,
        num: u64,
    ) -> ProviderResult<Option<StoredBlockBodyIndices>>;
}
Expand description

Client trait for fetching block body indices related data.

Required Methods§

Source

fn block_body_indices( &self, num: u64, ) -> ProviderResult<Option<StoredBlockBodyIndices>>

Returns the block body indices with matching number from database.

Returns None if block is not found.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + BlockBodyIndicesProvider + ?Sized> BlockBodyIndicesProvider for &'a T
where &'a T: Send + Sync,

Source§

fn block_body_indices( &self, num: u64, ) -> ProviderResult<Option<StoredBlockBodyIndices>>

Source§

impl<T: BlockBodyIndicesProvider + ?Sized> BlockBodyIndicesProvider for Arc<T>
where Arc<T>: Send + Sync,

Source§

fn block_body_indices( &self, num: u64, ) -> ProviderResult<Option<StoredBlockBodyIndices>>

Implementors§