pub trait TryIntoHistoricalStateProvider {
// Required method
fn try_into_history_at_block(
self,
block_number: u64,
) -> Result<Box<dyn StateProvider + Send>, ProviderError>;
}Expand description
Trait implemented for database providers that can be converted into a historical state provider.
Required Methods§
Sourcefn try_into_history_at_block(
self,
block_number: u64,
) -> Result<Box<dyn StateProvider + Send>, ProviderError>
fn try_into_history_at_block( self, block_number: u64, ) -> Result<Box<dyn StateProvider + Send>, ProviderError>
Returns a historical StateProvider indexed by the given historic block number.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<C, N> TryIntoHistoricalStateProvider for NoopProvider<C, N>
impl<T: NodePrimitives, ChainSpec: EthChainSpec + Send + Sync + 'static> TryIntoHistoricalStateProvider for MockEthProvider<T, ChainSpec>
Available on crate features
test-utils only.