pub trait ConfigureCommand {
// Required methods
fn current_dir(&mut self, dir: &Path);
fn env(&mut self, name: &str, value: &OsStr);
}Expand description
Common denominator for types that can be used to configure commands for execution in the terminal.
Required Methods§
Sourcefn current_dir(&mut self, dir: &Path)
fn current_dir(&mut self, dir: &Path)
Sets the current directory.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ConfigureCommand for Command
impl ConfigureCommand for Command
Implementors§
impl ConfigureCommand for PtyCommand
Available on crate feature
portable-pty only.