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