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§
Sourcefn get_state(
&self,
block: BlockNumber,
) -> ProviderResult<Option<ExecutionOutcome>>
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
impl<'a, T: 'a + StateReader + ?Sized> StateReader for &'a T
fn get_state( &self, block: BlockNumber, ) -> ProviderResult<Option<ExecutionOutcome>>
Source§impl<T: StateReader + ?Sized> StateReader for Box<T>
impl<T: StateReader + ?Sized> StateReader for Box<T>
fn get_state( &self, block: BlockNumber, ) -> ProviderResult<Option<ExecutionOutcome>>
Source§impl<T: StateReader + ?Sized> StateReader for Arc<T>
impl<T: StateReader + ?Sized> StateReader for Arc<T>
fn get_state( &self, block: BlockNumber, ) -> ProviderResult<Option<ExecutionOutcome>>
Implementors§
impl StateReader for MockEthProvider
Available on crate feature
test-utils
only.