ResultSequenceCounter

Trait ResultSequenceCounter 

Source
pub trait ResultSequenceCounter: Send + Sync {
    // Required methods
    fn apply_sequence<'life0, 'life1, 'async_trait>(
        &'life0 self,
        sequence: u64,
        source_change_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), IndexError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_sequence<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<ResultSequence, IndexError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn apply_sequence<'life0, 'life1, 'async_trait>( &'life0 self, sequence: u64, source_change_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), IndexError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_sequence<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<ResultSequence, IndexError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§