Struct wasi_test_generator::wasitests::WasiOptions
source · pub struct WasiOptions {
pub mapdir: Vec<(String, String)>,
pub env: Vec<(String, String)>,
pub args: Vec<String>,
pub dir: Vec<String>,
pub tempdir: Vec<String>,
pub stdin: Option<String>,
}
Expand description
The options provied when executed a WASI Wasm program
Fields§
§mapdir: Vec<(String, String)>
Mapped pre-opened dirs
env: Vec<(String, String)>
Environment vars
args: Vec<String>
Program arguments
dir: Vec<String>
Pre-opened directories
tempdir: Vec<String>
The alias of the temporary directory to use
stdin: Option<String>
Stdin to give to the native program and WASI program.
Trait Implementations§
source§impl Debug for WasiOptions
impl Debug for WasiOptions
source§impl Default for WasiOptions
impl Default for WasiOptions
source§fn default() -> WasiOptions
fn default() -> WasiOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for WasiOptions
impl<'de> Deserialize<'de> for WasiOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WasiOptions
impl RefUnwindSafe for WasiOptions
impl Send for WasiOptions
impl Sync for WasiOptions
impl Unpin for WasiOptions
impl UnwindSafe for WasiOptions
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