Struct wapc::WasiParams
source · pub struct WasiParams {
pub argv: Vec<String>,
pub map_dirs: Vec<(String, String)>,
pub env_vars: Vec<(String, String)>,
pub preopened_dirs: Vec<String>,
}
Expand description
Parameters defining the options for enabling WASI on a module (if applicable)
Fields§
§argv: Vec<String>
Command line arguments to expose to WASI.
map_dirs: Vec<(String, String)>
A mapping of directories.
env_vars: Vec<(String, String)>
Environment variables and values to expose.
preopened_dirs: Vec<String>
Directories that WASI has access to.
Implementations§
Trait Implementations§
source§impl Clone for WasiParams
impl Clone for WasiParams
source§fn clone(&self) -> WasiParams
fn clone(&self) -> WasiParams
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 WasiParams
impl Debug for WasiParams
source§impl Default for WasiParams
impl Default for WasiParams
source§fn default() -> WasiParams
fn default() -> WasiParams
Returns the “default value” for a type. Read more
source§impl PartialEq<WasiParams> for WasiParams
impl PartialEq<WasiParams> for WasiParams
source§fn eq(&self, other: &WasiParams) -> bool
fn eq(&self, other: &WasiParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.