reth::providers

Trait StateReader

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

This just receives state, or ExecutionOutcome, from the provider

Required Methods§

Source

fn get_state( &self, block: u64, ) -> Result<Option<ExecutionOutcome>, 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 + Sync,

Source§

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

Source§

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

Implementors§