Trait BlockBodyIndicesProvider
pub trait BlockBodyIndicesProvider: Send + Sync {
// Required method
fn block_body_indices(
&self,
num: u64,
) -> Result<Option<StoredBlockBodyIndices>, ProviderError>;
}
Expand description
Client trait for fetching block body indices related data.
Required Methods§
fn block_body_indices(
&self,
num: u64,
) -> Result<Option<StoredBlockBodyIndices>, ProviderError>
fn block_body_indices( &self, num: u64, ) -> Result<Option<StoredBlockBodyIndices>, ProviderError>
Returns the block body indices with matching number from database.
Returns None
if block is not found.
Implementations on Foreign Types§
§impl<'a, T> BlockBodyIndicesProvider for &'a T
impl<'a, T> BlockBodyIndicesProvider for &'a T
fn block_body_indices( &self, num: u64, ) -> Result<Option<StoredBlockBodyIndices>, ProviderError>
§impl<T> BlockBodyIndicesProvider for Arc<T>
impl<T> BlockBodyIndicesProvider for Arc<T>
fn block_body_indices( &self, num: u64, ) -> Result<Option<StoredBlockBodyIndices>, ProviderError>
Implementors§
impl BlockBodyIndicesProvider for MockEthProvider
Available on crate feature
test-utils
only.