Skip to main content

CheckpointManager

Trait CheckpointManager 

Source
pub trait CheckpointManager: Send + Sync {
    // Required methods
    fn save_checkpoint<'life0, 'async_trait>(
        &'life0 self,
        input: CheckpointInput,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn resume_task<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        query: &'life1 str,
        project: Option<&'life2 str>,
        limit: usize,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Value>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}

Required Methods§

Source

fn save_checkpoint<'life0, 'async_trait>( &'life0 self, input: CheckpointInput, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn resume_task<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, query: &'life1 str, project: Option<&'life2 str>, limit: usize, ) -> Pin<Box<dyn Future<Output = Result<Vec<Value>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§