pub trait WasmInstance {
type Context;
// Required methods
fn call_export(&mut self, name: &str) -> (Result<(), VMError>, GasUsage);
fn teardown(self) -> Self::Context;
}
Expand description
A trait that represents a Wasm instance.
pub trait WasmInstance {
type Context;
// Required methods
fn call_export(&mut self, name: &str) -> (Result<(), VMError>, GasUsage);
fn teardown(self) -> Self::Context;
}
A trait that represents a Wasm instance.