Struct wasmedge_sdk::VmBuilder
source · pub struct VmBuilder { /* private fields */ }Expand description
Constructs a Vm instance.
Implementations§
source§impl VmBuilder
impl VmBuilder
sourcepub fn with_config(self, config: Config) -> Self
pub fn with_config(self, config: Config) -> Self
sourcepub fn with_statistics(self, stat: Statistics) -> Self
pub fn with_statistics(self, stat: Statistics) -> Self
sourcepub fn with_store(self, store: Store) -> Self
pub fn with_store(self, store: Store) -> Self
sourcepub fn with_plugin_wasi_nn(self) -> Self
pub fn with_plugin_wasi_nn(self) -> Self
Sets the wasi_nn plugin for the Vm to build. The wasi_nn plugin should be deployed with WasmEdge library.
sourcepub fn with_plugin_wasi_crypto(self) -> Self
pub fn with_plugin_wasi_crypto(self) -> Self
Sets the wasi_crypto plugin for the Vm to build. The wasi_crypto plugin should be deployed with WasmEdge library.
sourcepub fn with_plugin_wasmedge_process(self) -> Self
pub fn with_plugin_wasmedge_process(self) -> Self
Sets the wasmedge_process plugin for the Vm to build. The wasmedge_process plugin should be deployed with WasmEdge library.
sourcepub fn with_plugin_wasmedge_httpsreq(self) -> Self
pub fn with_plugin_wasmedge_httpsreq(self) -> Self
Sets the wasmedge_sgx plugin for the Vm to build. The wasmedge_httpsreq plugin should be deployed with WasmEdge library.