Skip to main content

ProcessRunner

Trait ProcessRunner 

Source
pub trait ProcessRunner:
    Send
    + Sync
    + 'static {
    // Required method
    fn exec<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        program: &'life1 str,
        args: &'life2 [&'life3 str],
        cwd: Option<&'life4 Path>,
    ) -> Pin<Box<dyn Future<Output = Result<ProcessOutput, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

fn exec<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, program: &'life1 str, args: &'life2 [&'life3 str], cwd: Option<&'life4 Path>, ) -> Pin<Box<dyn Future<Output = Result<ProcessOutput, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, Self: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§