pub trait Worker {
// Required methods
fn describe(&self) -> Value;
fn prepare(
&self,
spec: &mut JobSpec,
base: &Path,
) -> Result<Box<dyn Prepared>>;
}Expand description
The solver behind one worker ID. run turns it into a worker binary
with the commands describe, validate and execute.
Required Methods§
Sourcefn describe(&self) -> Value
fn describe(&self) -> Value
The worker’s description for describe, usually built by
description.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".