Struct wasmedge_sdk::VmBuilder

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

Constructs a Vm instance.

Implementations§

Creates a new VmBuilder.

Sets the Config for the Vm to build.

Argument

Sets the Statistics for the Vm to build.

Argument

Sets the Store for the Vm to build.

Argument
  • store - The Store to set.

Sets the wasi_nn plugin for the Vm to build. The wasi_nn plugin should be deployed with WasmEdge library.

Sets the wasi_crypto plugin for the Vm to build. The wasi_crypto plugin should be deployed with WasmEdge library.

Sets the wasmedge_process plugin for the Vm to build. The wasmedge_process plugin should be deployed with WasmEdge library.

Sets the wasmedge_sgx plugin for the Vm to build. The wasmedge_httpsreq plugin should be deployed with WasmEdge library.

Set the third-party plugin for the Vm to build.

Arguments
  • pname - The name of the plugin.

  • mname - The name of the plugin module.

Creates a new Vm.

Error

If fail to create, then an error is returned.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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.