Trait Generator

Source
pub trait Generator: Send + Sync {
    // Required method
    fn next_id<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = R<i64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Implementors§