Trait BgJobHandler

Source
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;
}

Required Methods§

Source

fn get_ctx(&self) -> &C

Source

fn get_publisher(&self) -> &BackgroundJobServerPublisher

Source

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,

Implementors§