pub trait JobBody: Send + Sync {
// Required method
fn make(&self) -> Box<dyn FnOnce() + Send + 'static>;
}Expand description
A factory for a supervised-job body. Each call produces a fresh unit of work
the host’s generic supervisor runs over the batpak::store::Spawn seam.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".