Trait OpBuilder
pub trait OpBuilder: Sized {
type Context;
// Required methods
fn build_op(self) -> OpEvm<Self::Context, ()>;
fn build_op_with_inspector<INSP>(
self,
inspector: INSP,
) -> OpEvm<Self::Context, INSP>;
}
Available on crate feature
evm
only.Expand description
Trait that allows for optimism OpEvm to be built.
Required Associated Types§
type Context
type Context
Type of the context.
Required Methods§
fn build_op_with_inspector<INSP>(
self,
inspector: INSP,
) -> OpEvm<Self::Context, INSP>
fn build_op_with_inspector<INSP>( self, inspector: INSP, ) -> OpEvm<Self::Context, INSP>
Build the op with an 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.