pub trait AsyncCommandExecutor {
    // Required method
    async fn execute(
        &mut self,
        timeout: Option<Duration>,
    ) -> Result<(String, String)>;
}
Expand description

Interface for executing a command

Required Methods§

source

async fn execute( &mut self, timeout: Option<Duration>, ) -> Result<(String, String)>

Execute the command and return the stdout and stderr

Object Safety§

This trait is not object safe.

Implementors§