Struct wasmtime_cli::old_cli::WasiModules
source · pub struct WasiModules {
pub wasi_common: Option<bool>,
pub wasi_nn: Option<bool>,
pub wasi_threads: Option<bool>,
pub wasi_http: Option<bool>,
}
Expand description
Select which WASI modules are available at runtime for use by Wasm programs.
Fields§
§wasi_common: Option<bool>
Enable the wasi-common implementation; eventually this should be split into its separate parts once the implementation allows for it (e.g. wasi-fs, wasi-clocks, etc.).
wasi_nn: Option<bool>
Enable the experimental wasi-nn implementation.
wasi_threads: Option<bool>
Enable the experimental wasi-threads implementation.
wasi_http: Option<bool>
Enable the experimental wasi-http implementation
Trait Implementations§
source§impl Clone for WasiModules
impl Clone for WasiModules
source§fn clone(&self) -> WasiModules
fn clone(&self) -> WasiModules
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WasiModules
impl Debug for WasiModules
source§impl Default for WasiModules
impl Default for WasiModules
source§impl PartialEq for WasiModules
impl PartialEq for WasiModules
source§fn eq(&self, other: &WasiModules) -> bool
fn eq(&self, other: &WasiModules) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WasiModules
impl StructuralPartialEq for WasiModules
Auto Trait Implementations§
impl Freeze for WasiModules
impl RefUnwindSafe for WasiModules
impl Send for WasiModules
impl Sync for WasiModules
impl Unpin for WasiModules
impl UnwindSafe for WasiModules
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
source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read more