Struct wasmedge_sdk::dock::VmDock

source ·
pub struct VmDock { /* private fields */ }
Expand description

Extends a Vm instance by supporting function arguments of Rust built-in types.

Implementations§

Creates a new VmDock to be associated with the given Vm.

Arguments
  • vm - The Vm instance to be extended.

Runs an exported WASM function registered in a named or active module.

Arguments
  • func_name - The name of the exported WASM function to run.

  • params - The parameter values passed to the exported WASM function.

Error

If fail to run the WASM function, then an error is returned.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.