Trait mq::JobHandler
source · pub trait JobHandler: Send + Sync {
// Required methods
fn kind(&self) -> &str;
fn handle<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
) -> Pin<Box<dyn Future<Output = Result<JobResult, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn queue(&self) -> &str { ... }
}