Skip to main content

SyncInvocable

Trait SyncInvocable 

Source
pub trait SyncInvocable {
    // Required method
    fn invoke<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<RawOutput, CommandErrorWrapper>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Trait that defines “synchronously” invokable processes.

Required Methods§

Source

fn invoke<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<RawOutput, CommandErrorWrapper>> + Send + 'async_trait>>
where Self: 'async_trait,

Invoke a child process and wait on it to complete while slurping its output.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§