Skip to main content

ProcessRunner

Trait ProcessRunner 

Source
pub trait ProcessRunner: Send + Sync {
    // Required method
    fn run<'a>(
        &'a self,
        intent: ProcessActionIntent,
        context: ProcessRunnerContext,
    ) -> ProcessRunnerFuture<'a>;

    // Provided method
    fn background_control(&self) -> Option<Arc<dyn BackgroundProcessControl>> { ... }
}
Expand description

Object-safe runtime process runner boundary.

Implementations for SP2 are fakes or adapters supplied by tests and higher layers. This trait must not imply shell execution, raw shell parsing, or provider-specific behavior.

Required Methods§

Source

fn run<'a>( &'a self, intent: ProcessActionIntent, context: ProcessRunnerContext, ) -> ProcessRunnerFuture<'a>

Runs a validated process intent and returns provider-neutral output.

Provided Methods§

Source

fn background_control(&self) -> Option<Arc<dyn BackgroundProcessControl>>

Returns the session board that retains this runner’s background processes.

Runners that do not keep processes after run returns leave this empty.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§