pub trait ProcessRunner: Send + Sync {
// Required method
fn run<'a>(
&'a self,
spec: &'a ProcessSpec,
on_line: OnLine<'a>,
) -> BoxFuture<'a, Result<Exit, ProcessError>>;
}Expand description
Starts processes. Dropping the future of ProcessRunner::run before it resolves (a timeout,
a cancelled operation) ends the process and everything it started.
Required Methods§
Sourcefn run<'a>(
&'a self,
spec: &'a ProcessSpec,
on_line: OnLine<'a>,
) -> BoxFuture<'a, Result<Exit, ProcessError>>
fn run<'a>( &'a self, spec: &'a ProcessSpec, on_line: OnLine<'a>, ) -> BoxFuture<'a, Result<Exit, ProcessError>>
Runs spec to its end, handing each line it prints to on_line (decoded lossily).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".