use crate::backend::Backend;
pub trait ResumeAbandoned: Backend {
fn resume_abandoned(&mut self) -> impl Future<Output = Result<usize, Self::Error>> + Send;
}
pub trait RegisterWorker: Backend {
fn register_worker(
&mut self,
worker_id: String,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
}
#[derive(Debug, Clone)]
#[non_exhaustive]
pub enum WorkerFilter {
AllExcept(String),
Only(String),
None,
}