pub struct XCommandBuilder { /* private fields */ }Implementations§
Source§impl XCommandBuilder
impl XCommandBuilder
Sourcepub fn new<P: AsRef<Path>>(command: P) -> Result<Self>
pub fn new<P: AsRef<Path>>(command: P) -> Result<Self>
Create a XCommandBuilder with default values
Sourcepub fn inherit_environment<P: AsRef<Path>>(command: P) -> Result<Self>
pub fn inherit_environment<P: AsRef<Path>>(command: P) -> Result<Self>
Inherit the parent process’ env vars
Sourcepub fn clean_environment<P: AsRef<Path>>(command: P) -> Self
pub fn clean_environment<P: AsRef<Path>>(command: P) -> Self
Do not inherit the parent process’ env vars
Sourcepub fn args(self, args: &[&str]) -> Result<Self>
pub fn args(self, args: &[&str]) -> Result<Self>
Set the args of the process (Replaces any currently assigned args)
Auto Trait Implementations§
impl Freeze for XCommandBuilder
impl RefUnwindSafe for XCommandBuilder
impl Send for XCommandBuilder
impl Sync for XCommandBuilder
impl Unpin for XCommandBuilder
impl UnwindSafe for XCommandBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more