CommandExecutor

Trait CommandExecutor 

Source
pub trait CommandExecutor: Send + Sync {
    // Required method
    fn execute(&self, invocation: &CommandInvocation) -> Result<CommandOutput>;
}
Expand description

Trait implemented by concrete command execution strategies.

Required Methods§

Implementors§

Source§

impl CommandExecutor for DryRunCommandExecutor

Available on crate feature dry-run only.
Source§

impl CommandExecutor for ProcessCommandExecutor

Available on crate feature std-process only.
Source§

impl CommandExecutor for PureRustCommandExecutor

Available on crate feature pure-rust only.
Source§

impl<E, T> CommandExecutor for EventfulExecutor<E, T>

Available on crate feature exec-events only.