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§
Sourcefn exec<E>(&self, spec: E) -> ProjectResult<ExecHandle>
fn exec<E>(&self, spec: E) -> ProjectResult<ExecHandle>
Execute something that can be made into an ExecSpec
Provided Methods§
Sourcefn exec_with<F>(&self, config: F) -> ProjectResult<ExecResult>where
F: FnOnce(&mut ExecSpecBuilder),
fn exec_with<F>(&self, config: F) -> ProjectResult<ExecResult>where
F: FnOnce(&mut ExecSpecBuilder),
Automatically executes a spec and logs output streams
Sourcefn builder(&self) -> ExecSpecBuilder
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.