reth_node_builder::components

Trait ExecutorBuilder

Source
pub trait ExecutorBuilder<Node: FullNodeTypes>: Send {
    type EVM: ConfigureEvm<Header = Header>;
    type Executor: BlockExecutorProvider;

    // Required method
    fn build_evm(
        self,
        ctx: &BuilderContext<Node>,
    ) -> impl Future<Output = Result<(Self::EVM, Self::Executor)>> + Send;
}
Expand description

A type that knows how to build the executor types.

Required Associated Types§

Source

type EVM: ConfigureEvm<Header = Header>

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)>> + Send

Creates the EVM config.

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.

Implementors§

Source§

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

Source§

type EVM = EVM

Source§

type Executor = Executor