Struct ayaka_plugin_wasmtime::WasmtimeModule
source · pub struct WasmtimeModule { /* private fields */ }Expand description
A Wasmtime Instance.
Trait Implementations§
source§impl Linker<WasmtimeModule> for WasmtimeLinker
impl Linker<WasmtimeModule> for WasmtimeLinker
source§fn import(
&mut self,
ns: impl Into<String>,
funcs: HashMap<String, Func>
) -> Result<()>
fn import( &mut self, ns: impl Into<String>, funcs: HashMap<String, Func> ) -> Result<()>
Import functions by namespace and names.
source§fn wrap_raw(
&self,
f: impl Fn(WasmtimeLinkerHandle<'_>, i32, i32) -> Result<Vec<u8>> + Send + Sync + 'static
) -> Func
fn wrap_raw( &self, f: impl Fn(WasmtimeLinkerHandle<'_>, i32, i32) -> Result<Vec<u8>> + Send + Sync + 'static ) -> Func
Wrap a function with args in bytes.
source§impl<'a> LinkerHandle<'a, WasmtimeModule> for WasmtimeLinkerHandle<'a>
impl<'a> LinkerHandle<'a, WasmtimeModule> for WasmtimeLinkerHandle<'a>
source§impl RawModule for WasmtimeModule
impl RawModule for WasmtimeModule
§type Linker = WasmtimeLinker
type Linker = WasmtimeLinker
The linker type that can create raw module.
§type LinkerHandle<'a> = WasmtimeLinkerHandle<'a>
type LinkerHandle<'a> = WasmtimeLinkerHandle<'a>
The linker handle type.