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.
Required Associated Types§
Required Methods§
fn call_export(&mut self, name: &str) -> (Result<(), VMError>, GasUsage)
fn teardown(self) -> Self::Context
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".