Skip to main content

CompletionRepository

Trait CompletionRepository 

Source
pub(in http) trait CompletionRepository: Send + Sync {
    // Required methods
    fn persist<'life0, 'async_trait>(
        &'life0 self,
        job: FinalizedJob,
    ) -> Pin<Box<dyn Future<Output = Result<(), CompletionPersistenceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn record_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        event: ChunkEvent<'life1>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn persist<'life0, 'async_trait>( &'life0 self, job: FinalizedJob, ) -> Pin<Box<dyn Future<Output = Result<(), CompletionPersistenceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn record_event<'life0, 'life1, 'async_trait>( &'life0 self, event: ChunkEvent<'life1>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§