pub struct SubprocessCommand {
pub binary: PathBuf,
pub args: Vec<String>,
pub env: HashMap<String, String>,
pub env_remove: HashSet<String>,
pub inherit_env: bool,
pub cwd: Option<PathBuf>,
}Fields§
§binary: PathBuf§args: Vec<String>§env: HashMap<String, String>§env_remove: HashSet<String>Inherited environment variables to remove from the subprocess.
Applied after env overlay; only meaningful when inherit_env is true.
inherit_env: boolIf false, the child gets ONLY env. If true (default), inherits
the current process env and overlays env.
cwd: Option<PathBuf>Implementations§
Source§impl SubprocessCommand
impl SubprocessCommand
Sourcepub fn builder() -> SubprocessCommandBuilder
pub fn builder() -> SubprocessCommandBuilder
Create an instance of SubprocessCommand using the builder syntax
Trait Implementations§
Source§impl Clone for SubprocessCommand
impl Clone for SubprocessCommand
Source§fn clone(&self) -> SubprocessCommand
fn clone(&self) -> SubprocessCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SubprocessCommand
impl RefUnwindSafe for SubprocessCommand
impl Send for SubprocessCommand
impl Sync for SubprocessCommand
impl Unpin for SubprocessCommand
impl UnsafeUnpin for SubprocessCommand
impl UnwindSafe for SubprocessCommand
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