Struct ayaka_plugin_wasmtime::WasmtimeLinker
source · pub struct WasmtimeLinker { /* private fields */ }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.