pub struct Command {
pub program: PathBuf,
pub args: Vec<String>,
pub env: Vec<(String, SecretValue)>,
}Expand description
A fully-resolved command ready to launch: the program, its arguments, and the environment to inject into the child.
Fields§
§program: PathBufThe program to execute (the resolved argv[0]).
args: Vec<String>The arguments after the program.
env: Vec<(String, SecretValue)>Variables to inject into the child’s environment. Values stay protected until the runner exposes them at spawn time (I7 — never to disk).
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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