Trait reth::builder::components::ExecutorBuilder

source ·
pub trait ExecutorBuilder<Node>: Send
where Node: FullNodeTypes,
{ type EVM: ConfigureEvm; type Executor: BlockExecutorProvider; // Required method fn build_evm( self, ctx: &BuilderContext<Node>, ) -> impl Future<Output = Result<(Self::EVM, Self::Executor), Report>> + Send; }
Expand description

A type that knows how to build the executor types.

Required Associated Types§

source

type EVM: ConfigureEvm

The EVM config to use.

This provides the node with the necessary configuration to configure an EVM.

source

type Executor: BlockExecutorProvider

The type that knows how to execute blocks.

Required Methods§

source

fn build_evm( self, ctx: &BuilderContext<Node>, ) -> impl Future<Output = Result<(Self::EVM, Self::Executor), Report>> + Send

Creates the EVM config.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<Node> ExecutorBuilder<Node> for OptimismExecutorBuilder
where Node: FullNodeTypes,

Implementors§

source§

impl<Node, F, Fut, EVM, Executor> ExecutorBuilder<Node> for F
where Node: FullNodeTypes, EVM: ConfigureEvm, Executor: BlockExecutorProvider, F: FnOnce(&BuilderContext<Node>) -> Fut + Send, Fut: Future<Output = Result<(EVM, Executor), Report>> + Send,

§

type EVM = EVM

§

type Executor = Executor