pub trait CommandExtra: Sized {
// Required methods
fn with_current_dir(self, dir: impl AsRef<Path>) -> Self;
fn with_env(self, key: impl AsRef<OsStr>, value: impl AsRef<OsStr>) -> Self;
fn without_env(self, key: impl AsRef<OsStr>) -> Self;
fn with_no_env(self) -> Self;
fn with_arg(self, arg: impl AsRef<OsStr>) -> Self;
fn with_stdin(self, stdio: Stdio) -> Self;
fn with_stdout(self, stdio: Stdio) -> Self;
fn with_stderr(self, stdio: Stdio) -> Self;
// Provided methods
fn with_args<Args>(self, args: Args) -> Self
where Args: IntoIterator,
Args::Item: AsRef<OsStr> { ... }
fn with_envs<Envs, Key, Value>(self, envs: Envs) -> Self
where Envs: IntoIterator<Item = (Key, Value)>,
Key: AsRef<OsStr>,
Value: AsRef<OsStr> { ... }
}Required Methods§
fn with_current_dir(self, dir: impl AsRef<Path>) -> Self
fn with_env(self, key: impl AsRef<OsStr>, value: impl AsRef<OsStr>) -> Self
fn without_env(self, key: impl AsRef<OsStr>) -> Self
fn with_no_env(self) -> Self
fn with_arg(self, arg: impl AsRef<OsStr>) -> Self
fn with_stdin(self, stdio: Stdio) -> Self
fn with_stdout(self, stdio: Stdio) -> Self
fn with_stderr(self, stdio: Stdio) -> Self
Provided Methods§
fn with_args<Args>(self, args: Args) -> Self
fn with_envs<Envs, Key, Value>(self, envs: Envs) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".