Trait ClassifiedWorkerFactory

Source
pub trait ClassifiedWorkerFactory<C: WorkerClassification, W: ClassifiedWorker<C>>:
    Send
    + Sync
    + 'static {
    // Required method
    fn create<'life0, 'async_trait>(
        &'life0 self,
        c: Option<C>,
    ) -> Pin<Box<dyn Future<Output = PoolResult<W>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn create<'life0, 'async_trait>( &'life0 self, c: Option<C>, ) -> Pin<Box<dyn Future<Output = PoolResult<W>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§