Trait CommandExecutor

Source
pub trait CommandExecutor<Runtime>
where Runtime: HasFilePathType + HasErrorType,
{ // Required method fn exec_command( runtime: &Runtime, command_path: &Runtime::FilePath, args: &[&str], ) -> impl Future<Output = Result<ExecOutput, Runtime::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§

Source

fn exec_command( runtime: &Runtime, command_path: &Runtime::FilePath, args: &[&str], ) -> impl Future<Output = Result<ExecOutput, Runtime::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§

Source§

impl<Component, Runtime> CommandExecutor<Runtime> for Component

A context with capability to execute shell commands similar to shell scripts. The result of a successful execution is stored as string.

Source§

impl<Runtime> CommandExecutor<Runtime> for ExecCommandWithNoEnv
where Runtime: CanExecCommandWithEnvs,