Trait MainBuilder

Source
pub trait MainBuilder: Sized {
    type Context;

    // Required methods
    fn build_mainnet(self) -> MainnetEvm<Self::Context>;
    fn build_mainnet_with_inspector<INSP>(
        self,
        inspector: INSP,
    ) -> MainnetEvm<Self::Context, INSP>;
}
Expand description

Trait for building mainnet EVM instances from contexts.

Required Associated Types§

Source

type Context

The context type that will be used in the EVM.

Required Methods§

Source

fn build_mainnet(self) -> MainnetEvm<Self::Context>

Builds a mainnet EVM instance without an inspector.

Source

fn build_mainnet_with_inspector<INSP>( self, inspector: INSP, ) -> MainnetEvm<Self::Context, INSP>

Builds a mainnet EVM instance with the provided inspector.

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.

Implementations on Foreign Types§

Source§

impl<BLOCK, TX, CFG, DB, JOURNAL, CHAIN> MainBuilder for Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN>
where BLOCK: Block, TX: Transaction, CFG: Cfg, DB: Database, JOURNAL: JournalTr<Database = DB>,

Source§

type Context = Context<BLOCK, TX, CFG, DB, JOURNAL, CHAIN>

Source§

fn build_mainnet(self) -> MainnetEvm<Self::Context>

Source§

fn build_mainnet_with_inspector<INSP>( self, inspector: INSP, ) -> MainnetEvm<Self::Context, INSP>

Implementors§