TaskRunner

Trait TaskRunner 

Source
pub trait TaskRunner {
    type Response;

    // Required method
    fn run<T>(&self, cmd: T) -> Result<Self::Response>
       where T: IntoIterator,
             T::Item: AsRef<OsStr>;
}
Expand description

A trait that handles the execution of processes with a finite lifetime. For example, it can be an in-memory process for testing or a shell command doing I/O. It handles all processes that do not conform with the HTTP protocol. For that, check the HttpRunner

Required Associated Types§

Required Methods§

Source

fn run<T>(&self, cmd: T) -> Result<Self::Response>
where T: IntoIterator, T::Item: AsRef<OsStr>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§