pub trait CanExecCommandWithEnvs: HasFilePathType + HasErrorType {
    // Required method
    fn exec_command_with_envs(
        &self,
        command_path: &Self::FilePath,
        args: &[&str],
        envs: &[(&str, &str)],
    ) -> impl Future<Output = Result<ExecOutput, Self::Error>> + Send;
}Expand description
A context with capability to execute shell commands similar to shell scripts. The result of a successful execution is stored as string.
Required Methods§
fn exec_command_with_envs( &self, command_path: &Self::FilePath, args: &[&str], envs: &[(&str, &str)], ) -> impl Future<Output = Result<ExecOutput, Self::Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<Runtime> CanExecCommandWithEnvs for Runtimewhere
    Runtime: HasFilePathType + HasErrorType + HasComponents,
    Runtime::Components: CommandWithEnvsExecutor<Runtime>,
A context with capability to execute shell commands similar to shell scripts. The result of a successful execution is stored as string.