Struct wasmedge_sdk::Executor

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

Defines an execution environment for both pure WASM and compiled WASM.

Implementations§

Creates a new executor to be associated with the given config and statistics.

Arguments
Error

If fail to create a executor, then an error is returned.

Runs a host function instance and returns the results.

Arguments
  • func - The function instance to run.

  • params - The arguments to pass to the function.

Errors

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

Asynchronously runs a host function instance and returns the results.

Arguments
  • func - The function instance to run.

  • params - The arguments to pass to the function.

Errors

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

Runs a host function reference instance and returns the results.

Arguments
  • func_ref - The function reference instance to run.

  • params - The arguments to pass to the function.

Errors

If fail to run the host function reference instance, then an error is returned.

Asynchronously runs a host function reference instance and returns the results.

Arguments
  • func_ref - The function reference instance to run.

  • params - The arguments to pass to the function.

Errors

If fail to run the host function reference instance, then an error is returned.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.