pub struct WasmInterpreter { /* private fields */ }
Expand description
Wasm interpreter instance
Implementations§
Source§impl WasmInterpreter
impl WasmInterpreter
pub fn new(params: ActionParams) -> Self
Trait Implementations§
Source§impl Exec for WasmInterpreter
impl Exec for WasmInterpreter
Source§fn exec(
self: Box<WasmInterpreter>,
ext: &mut dyn Ext,
) -> ExecTrapResult<GasLeft>
fn exec( self: Box<WasmInterpreter>, ext: &mut dyn Ext, ) -> ExecTrapResult<GasLeft>
This function should be used to execute transaction.
It returns either an error, a known amount of gas left, or parameters to be used
to compute the final gas left.
Auto Trait Implementations§
impl Freeze for WasmInterpreter
impl RefUnwindSafe for WasmInterpreter
impl Send for WasmInterpreter
impl Sync for WasmInterpreter
impl Unpin for WasmInterpreter
impl UnwindSafe for WasmInterpreter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more