pub trait JobExecutor {
// Required method
fn execute(&self, input: &JobInput) -> Result<JobResult, SwarmError>;
}Expand description
A node that can execute swarm jobs. Object-safe so it can be boxed and swapped (a local cell, a remote peer proxy, a test double).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".