pub trait BatchJobHandler: Send + Sync {
// Required method
fn handle_batch(
&self,
jobs: Vec<Job>,
) -> Pin<Box<dyn Future<Output = Result<(), JobError>> + Send>>;
}Expand description
A handler that processes a batch of jobs atomically.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".