reth_provider

Trait StateReader

Source
pub trait StateReader: Send + Sync {
    type Receipt: Send + Sync;

    // Required method
    fn get_state(
        &self,
        block: BlockNumber,
    ) -> ProviderResult<Option<ExecutionOutcome<Self::Receipt>>>;
}
Expand description

This just receives state, or ExecutionOutcome, from the provider

Required Associated Types§

Source

type Receipt: Send + Sync

Receipt type in ExecutionOutcome.

Required Methods§

Source

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

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§

type Receipt = <T as StateReader>::Receipt

Source§

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

Source§

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

Source§

type Receipt = <T as StateReader>::Receipt

Source§

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

Source§

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

Source§

type Receipt = <T as StateReader>::Receipt

Source§

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

Implementors§

Source§

impl StateReader for MockEthProvider

Available on crate feature test-utils only.
Source§

type Receipt = Receipt

Source§

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

Source§

type Receipt = <<N as NodeTypes>::Primitives as NodePrimitives>::Receipt