Trait revm_precompile::StatefulPrecompileMut

source ·
pub trait StatefulPrecompileMut: DynClone + Send + Sync {
    // Required method
    fn call_mut(
        &mut self,
        bytes: &Bytes,
        gas_price: u64,
        env: &Env
    ) -> Result<(u64, Bytes), PrecompileError>;
}
Expand description

Mutable stateful precompile trait. It is used to create a boxed precompile in Precompile::StatefulMut.

Required Methods§

source

fn call_mut( &mut self, bytes: &Bytes, gas_price: u64, env: &Env ) -> Result<(u64, Bytes), PrecompileError>

Trait Implementations§

source§

impl<'clone> Clone for Box<dyn StatefulPrecompileMut + 'clone>

source§

fn clone(&self) -> Box<dyn StatefulPrecompileMut + '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
source§

impl<'clone> Clone for Box<dyn StatefulPrecompileMut + Send + 'clone>

source§

fn clone(&self) -> Box<dyn StatefulPrecompileMut + 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
source§

impl<'clone> Clone for Box<dyn StatefulPrecompileMut + Sync + Send + 'clone>

source§

fn clone(&self) -> Box<dyn StatefulPrecompileMut + Sync + 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
source§

impl<'clone> Clone for Box<dyn StatefulPrecompileMut + Sync + 'clone>

source§

fn clone(&self) -> Box<dyn StatefulPrecompileMut + 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§