Skip to main content

LocalExecutor

Trait LocalExecutor 

Source
pub trait LocalExecutor: Send + Sync {
    // Required method
    fn execute_command<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        command: &'life1 str,
        args: &'life2 [String],
        timeout_secs: u64,
    ) -> Pin<Box<dyn Future<Output = Result<(String, i32), String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for executing local commands, allowing test mocking.

Required Methods§

Source

fn execute_command<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, command: &'life1 str, args: &'life2 [String], timeout_secs: u64, ) -> Pin<Box<dyn Future<Output = Result<(String, i32), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§