Trait sc_executor_wasmtime::WasmModule
source · pub trait WasmModule: Sync + Send {
// Required method
fn new_instance(&self) -> Result<Box<dyn WasmInstance>, Error>;
}
Expand description
A trait that defines an abstract WASM runtime module.
This can be implemented by an execution engine.
Required Methods§
sourcefn new_instance(&self) -> Result<Box<dyn WasmInstance>, Error>
fn new_instance(&self) -> Result<Box<dyn WasmInstance>, Error>
Create a new instance.