reth_provider

Trait StateReader

Source
pub trait StateReader: Send + Sync {
    // Required method
    fn get_state(
        &self,
        block: BlockNumber,
    ) -> ProviderResult<Option<ExecutionOutcome>>;
}
Expand description

This just receives state, or ExecutionOutcome, from the provider

Required Methods§

Source

fn get_state( &self, block: BlockNumber, ) -> ProviderResult<Option<ExecutionOutcome>>

Get the ExecutionOutcome for the given block

Implementations on Foreign Types§

Source§

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

Source§

fn get_state( &self, block: BlockNumber, ) -> ProviderResult<Option<ExecutionOutcome>>

Source§

impl<T: StateReader + ?Sized> StateReader for Box<T>
where Box<T>: Send + Sync,

Source§

fn get_state( &self, block: BlockNumber, ) -> ProviderResult<Option<ExecutionOutcome>>

Source§

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

Source§

fn get_state( &self, block: BlockNumber, ) -> ProviderResult<Option<ExecutionOutcome>>

Implementors§

Source§

impl StateReader for MockEthProvider

Available on crate feature test-utils only.
Source§

impl<N: ProviderNodeTypes> StateReader for BlockchainProvider2<N>

Source§

impl<N: ProviderNodeTypes> StateReader for ConsistentProvider<N>

Source§

impl<TX: DbTx + 'static, N: NodeTypes> StateReader for DatabaseProvider<TX, N>