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_rustls(self) -> Self
pub fn with_plugin_rustls(self) -> Self
Sets the rustls
plugin for the Vm to build. The rustls
plugin should be deployed with WasmEdge library.
sourcepub fn with_wasi_context(self, wasi_ctx: WasiContext) -> Self
Available on crate feature async
and Linux only.
pub fn with_wasi_context(self, wasi_ctx: WasiContext) -> Self
async
and Linux only.Sets the WasiContext for the Vm to build.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VmBuilder
impl Send for VmBuilder
impl Sync for VmBuilder
impl Unpin for VmBuilder
impl !UnwindSafe for VmBuilder
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