pub struct ProcessConfig {
pub command: CommandSpec,
pub cwd: Option<PathBuf>,
pub env: Option<Vec<(String, String)>>,
pub capture: bool,
pub stderr_mode: StderrMode,
pub creationflags: Option<u32>,
pub create_process_group: bool,
pub stdin_mode: StdinMode,
pub nice: Option<i32>,
pub containment: Option<Containment>,
}Fields§
§command: CommandSpec§cwd: Option<PathBuf>§env: Option<Vec<(String, String)>>§capture: bool§stderr_mode: StderrMode§creationflags: Option<u32>§create_process_group: bool§stdin_mode: StdinMode§nice: Option<i32>§containment: Option<Containment>Optional containment policy. None preserves existing behaviour.
Some(Contained) sets PR_SET_PDEATHSIG(SIGKILL) on Linux and uses
the existing Job Object on Windows. Some(Detached) creates a new
session (setsid) on Unix so the child survives the parent.
Trait Implementations§
Source§impl Clone for ProcessConfig
impl Clone for ProcessConfig
Source§fn clone(&self) -> ProcessConfig
fn clone(&self) -> ProcessConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProcessConfig
impl RefUnwindSafe for ProcessConfig
impl Send for ProcessConfig
impl Sync for ProcessConfig
impl Unpin for ProcessConfig
impl UnsafeUnpin for ProcessConfig
impl UnwindSafe for ProcessConfig
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