sfo_pool

Trait WorkerFactory

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

Required Methods§

Source

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

Implementors§