pub struct Command { /* private fields */ }Expand description
just like standard Command but keeps the components
in a human readable format so we can actually display
it when needed. or keep trace of it.
a Command is not active unless it has been started
Implementations§
Source§impl Command
impl Command
Sourcepub fn current_working_directory(&mut self, cwd: PathBuf) -> &mut Self
pub fn current_working_directory(&mut self, cwd: PathBuf) -> &mut Self
set the working directory: the directory in which the command will be executed.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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