Trait ServerMiddleware

Source
pub trait ServerMiddleware {
    // Required method
    fn call<'life0, 'life1, 'async_trait>(
        &'life0 self,
        iter: ChainIter,
        job: &'life1 Job,
        worker: Arc<WorkerRef>,
        redis: RedisPool,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn call<'life0, 'life1, 'async_trait>( &'life0 self, iter: ChainIter, job: &'life1 Job, worker: Arc<WorkerRef>, redis: RedisPool, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§