Trait ClassifiedWorkerFactory

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

Required Methods§

Source

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

Implementors§