pub trait BlockExecutionWriter:
BlockWriter
+ Send
+ Sync {
// Required methods
fn take_block_and_execution_range(
&self,
range: RangeInclusive<BlockNumber>,
) -> ProviderResult<Chain>;
fn remove_block_and_execution_range(
&self,
range: RangeInclusive<BlockNumber>,
) -> ProviderResult<()>;
}
Expand description
BlockExecution Writer
Required Methods§
Sourcefn take_block_and_execution_range(
&self,
range: RangeInclusive<BlockNumber>,
) -> ProviderResult<Chain>
fn take_block_and_execution_range( &self, range: RangeInclusive<BlockNumber>, ) -> ProviderResult<Chain>
Take range of blocks and its execution result
Sourcefn remove_block_and_execution_range(
&self,
range: RangeInclusive<BlockNumber>,
) -> ProviderResult<()>
fn remove_block_and_execution_range( &self, range: RangeInclusive<BlockNumber>, ) -> ProviderResult<()>
Remove range of blocks and its execution result
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.