forge::revm

Trait ContextStatefulPrecompileMut

pub trait ContextStatefulPrecompileMut<DB>:
    DynClone
    + Send
    + Sync
where DB: Database,
{ // Required method fn call_mut( &mut self, bytes: &Bytes, gas_limit: u64, evmctx: &mut InnerEvmContext<DB>, ) -> Result<PrecompileOutput, PrecompileErrors>; }
Expand description

Context aware mutable stateful precompile trait. It is used to create a boxed precompile in ContextPrecompile.

Required Methods§

fn call_mut( &mut self, bytes: &Bytes, gas_limit: u64, evmctx: &mut InnerEvmContext<DB>, ) -> Result<PrecompileOutput, PrecompileErrors>

Trait Implementations§

§

impl<'clone, DB> Clone for Box<dyn ContextStatefulPrecompileMut<DB> + 'clone>

§

fn clone(&self) -> Box<dyn ContextStatefulPrecompileMut<DB> + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone, DB> Clone for Box<dyn ContextStatefulPrecompileMut<DB> + Send + 'clone>

§

fn clone(&self) -> Box<dyn ContextStatefulPrecompileMut<DB> + Send + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone, DB> Clone for Box<dyn ContextStatefulPrecompileMut<DB> + Send + Sync + 'clone>

§

fn clone( &self, ) -> Box<dyn ContextStatefulPrecompileMut<DB> + Send + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<'clone, DB> Clone for Box<dyn ContextStatefulPrecompileMut<DB> + Sync + 'clone>

§

fn clone(&self) -> Box<dyn ContextStatefulPrecompileMut<DB> + Sync + 'clone>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§