pub trait StatefulPrecompileMut:
DynClone
+ Send
+ Sync {
// Required method
fn call_mut(
&mut self,
bytes: &Bytes,
gas_limit: u64,
env: &Env,
) -> Result<PrecompileOutput, PrecompileErrors>;
}
Expand description
Mutable stateful precompile trait. It is used to create a boxed precompile in Precompile::StatefulMut.
Required Methods§
fn call_mut( &mut self, bytes: &Bytes, gas_limit: u64, env: &Env, ) -> Result<PrecompileOutput, PrecompileErrors>
Trait Implementations§
Source§impl<'clone> Clone for Box<dyn StatefulPrecompileMut + 'clone>
impl<'clone> Clone for Box<dyn StatefulPrecompileMut + 'clone>
Source§fn clone(&self) -> Box<dyn StatefulPrecompileMut + 'clone>
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more