pub trait BatchStore<D>: Send + Sync{
// Required methods
fn save_job(&self, job: &BatchJob<D>) -> Result<()>;
fn load_all(&self) -> Result<Vec<BatchJob<D>>>;
fn delete_job(&self, job_id: &str) -> Result<()>;
}Expand description
Trait for persisting batch queue state.
The default BatchQueue is in-memory only. Implement this trait to
persist jobs across restarts (e.g., to SQLite or a file).
Required Methods§
Sourcefn delete_job(&self, job_id: &str) -> Result<()>
fn delete_job(&self, job_id: &str) -> Result<()>
Delete a completed/cancelled job.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".