Skip to main content

Process

Trait Process 

Source
pub trait Process: Send {
    // Required method
    fn execute(
        self,
        config: Config,
        service: IntelliShellService,
        cancellation_token: CancellationToken,
    ) -> impl Future<Output = Result<ProcessOutput>> + Send;
}
Expand description

Trait for non-interactive processes

Required Methods§

Source

fn execute( self, config: Config, service: IntelliShellService, cancellation_token: CancellationToken, ) -> impl Future<Output = Result<ProcessOutput>> + Send

Executes the process non-interactively and returns the output

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§