Trait ProjectExec

Source
pub trait ProjectExec: ProjectSealed {
    // Required method
    fn exec<E>(&self, spec: E) -> ProjectResult<ExecHandle>
       where E: Into<ExecSpec>;

    // Provided methods
    fn exec_with<F>(&self, config: F) -> ProjectResult<ExecResult>
       where F: FnOnce(&mut ExecSpecBuilder) { ... }
    fn builder(&self) -> ExecSpecBuilder { ... }
}
Expand description

Adds ExecSpec related methods to projects.

Required Methods§

Source

fn exec<E>(&self, spec: E) -> ProjectResult<ExecHandle>
where E: Into<ExecSpec>,

Execute something that can be made into an ExecSpec

Provided Methods§

Source

fn exec_with<F>(&self, config: F) -> ProjectResult<ExecResult>
where F: FnOnce(&mut ExecSpecBuilder),

Automatically executes a spec and logs output streams

Source

fn builder(&self) -> ExecSpecBuilder

Create a new builder

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§