pub struct WasmSpec {
pub module: PathBuf,
pub args: Vec<String>,
pub env: TaskEnv,
}Expand description
Specification for WebAssembly module execution via a WASI-compatible runtime.
Fields§
§module: PathBufPath to the .wasm module.
args: Vec<String>Arguments passed to the WASI main entrypoint.
env: TaskEnvEnvironment variables exposed to the WASI module.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WasmSpec
impl<'de> Deserialize<'de> for WasmSpec
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
impl Eq for WasmSpec
impl StructuralPartialEq for WasmSpec
Auto Trait Implementations§
impl Freeze for WasmSpec
impl RefUnwindSafe for WasmSpec
impl Send for WasmSpec
impl Sync for WasmSpec
impl Unpin for WasmSpec
impl UnsafeUnpin for WasmSpec
impl UnwindSafe for WasmSpec
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