Struct wasm::WasmInterpreter
source · [−]pub struct WasmInterpreter { /* private fields */ }
Expand description
Wasm interpreter instance
Implementations
sourceimpl WasmInterpreter
impl WasmInterpreter
pub fn new(params: ActionParams) -> Self
Trait Implementations
sourceimpl Exec for WasmInterpreter
impl Exec for WasmInterpreter
sourcefn 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. Read more
Auto Trait Implementations
impl !RefUnwindSafe for WasmInterpreter
impl !Send for WasmInterpreter
impl !Sync for WasmInterpreter
impl Unpin for WasmInterpreter
impl !UnwindSafe for WasmInterpreter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more