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§
Sourcefn 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,
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.