CommandExt

Trait CommandExt 

Source
pub trait CommandExt {
    // Required method
    fn spawn_logged<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        log_dir: &'life1 PathBuf,
        name: &'static str,
        line: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Extension trait for Command.

Required Methods§

Source

fn spawn_logged<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, log_dir: &'life1 PathBuf, name: &'static str, line: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Spawn a command, logging its stdout/stderr to files and to the env logger.

Implementations on Foreign Types§

Source§

impl CommandExt for Command

Source§

fn spawn_logged<'life0, 'life1, 'life2, 'async_trait>( &'life0 mut self, log_dir: &'life1 PathBuf, name: &'static str, line: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§