pub trait BgJobHandler<C> {
// Required methods
fn get_ctx(&self) -> &C;
fn get_publisher(&self) -> &BackgroundJobServerPublisher;
fn dispatch<'life0, 'life1, 'async_trait>(
&'life0 self,
ptype: String,
payload: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}