Skip to main content

HistoryTracker

Trait HistoryTracker 

Source
pub trait HistoryTracker<Op>: LogTracker<Op> {
    // Required method
    fn read_entries<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        db: &'life1 dyn Db,
        peer_id: &'life2 Uuid,
        from: u64,
        limit: u64,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(u64, DecodedEntry<Op>)>, LogTrackerError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

A LogTracker that also reconstructs stored entries — the op-log case, which keeps full history and so can back a replication LogSource.

Required Methods§

Source

fn read_entries<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, db: &'life1 dyn Db, peer_id: &'life2 Uuid, from: u64, limit: u64, ) -> Pin<Box<dyn Future<Output = Result<Vec<(u64, DecodedEntry<Op>)>, LogTrackerError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Up to limit of peer_id’s entries at or after from, ascending (expunged markers included), reconstructed from stored rows.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§