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
Source§type Linker = WasmtimeLinker
type Linker = WasmtimeLinker
The linker type that can create raw module.
Source§type LinkerHandle<'a> = WasmtimeLinkerHandle<'a>
type LinkerHandle<'a> = WasmtimeLinkerHandle<'a>
The linker handle type.
Auto Trait Implementations§
impl Freeze for WasmtimeModule
impl RefUnwindSafe for WasmtimeModule
impl Send for WasmtimeModule
impl Sync for WasmtimeModule
impl Unpin for WasmtimeModule
impl UnwindSafe for WasmtimeModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more