pub struct BoxInvocation<'a> {
pub program: &'a Path,
pub args: &'a [String],
pub cwd: &'a Path,
pub environment: &'a BTreeMap<String, String>,
pub stdin: StdioMode,
pub stdout: StdioMode,
pub stderr: StdioMode,
}Expand description
What would be spawned, once the trust chain has finished and the environment is resolved.
This exists so the decision to spawn and the act of spawning are separable. A test can then assert the exact argument vector, working directory and environment a box would run with — including that no shell is involved — without a process ever starting.
Fields§
§program: &'a PathThe box’s own interpreter.
args: &'a [String]Arguments, in the order the release and the caller fixed.
cwd: &'a PathThe working directory, always the box root.
environment: &'a BTreeMap<String, String>The complete environment the child receives.
stdin: StdioModeWhere standard input comes from.
stdout: StdioModeWhere standard output goes.
stderr: StdioModeWhere standard error goes.
Auto Trait Implementations§
impl<'a> Freeze for BoxInvocation<'a>
impl<'a> RefUnwindSafe for BoxInvocation<'a>
impl<'a> Send for BoxInvocation<'a>
impl<'a> Sync for BoxInvocation<'a>
impl<'a> Unpin for BoxInvocation<'a>
impl<'a> UnsafeUnpin for BoxInvocation<'a>
impl<'a> UnwindSafe for BoxInvocation<'a>
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