Skip to main content

SubprocessRuntime

Trait SubprocessRuntime 

Source
pub trait SubprocessRuntime: Send + Sync {
    // Required method
    fn run_command(
        &self,
        program: &str,
        args: &[&str],
        stdin: Option<&[u8]>,
    ) -> Result<SubprocessOutput, SubprocessError>;
}
Expand description

Abstraction trait for subprocess execution.

Required Methods§

Source

fn run_command( &self, program: &str, args: &[&str], stdin: Option<&[u8]>, ) -> Result<SubprocessOutput, SubprocessError>

Execute a command with the given arguments and optional stdin.

Implementors§