pub struct SpawnSpec {
pub program: PathBuf,
pub args: Vec<OsString>,
pub cwd: PathBuf,
pub env_path: OsString,
pub capture: bool,
pub inherit_stdin: bool,
pub capture_limit: Option<usize>,
}Expand description
What to run and how.
Fields§
§program: PathBuf§args: Vec<OsString>§cwd: PathBuf§env_path: OsStringSanitized PATH (shim dir removed) for the child.
capture: boolCapture stdout/stderr (Optimize) vs inherit stdio (Passthrough).
inherit_stdin: boolWhen capturing, whether to inherit stdin (pipe) or use /dev/null (tty).
capture_limit: Option<usize>Reserved for M3 capped capture; ignored in the full-capture path.
Auto Trait Implementations§
impl Freeze for SpawnSpec
impl RefUnwindSafe for SpawnSpec
impl Send for SpawnSpec
impl Sync for SpawnSpec
impl Unpin for SpawnSpec
impl UnsafeUnpin for SpawnSpec
impl UnwindSafe for SpawnSpec
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