StateReader

Trait StateReader 

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

    // Required method
    fn get_state(
        &self,
        block: u64,
    ) -> Result<Option<ExecutionOutcome<Self::Receipt>>, ProviderError>;
}
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: u64, ) -> Result<Option<ExecutionOutcome<Self::Receipt>>, ProviderError>

Get the ExecutionOutcome for the given block

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§

Source§

impl<C, N> StateReader for NoopProvider<C, N>
where C: Send + Sync, N: NodePrimitives,

Source§

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

Source§

impl<T: NodePrimitives, ChainSpec: Send + Sync> StateReader for MockEthProvider<T, ChainSpec>

Available on crate features test-utils only.