Skip to main content

SyncupView

Trait SyncupView 

Source
pub trait SyncupView {
    // Required methods
    fn last_sync(&self) -> Vlsn;
    fn last_txn_end(&self) -> Vlsn;
    fn first_vlsn(&self) -> Vlsn;
    fn entry(&self, vlsn: Vlsn) -> Option<VlsnEntry>;
}
Expand description

A node’s view of its replicated log for syncup: the VLSN range plus a way to look up each VLSN’s VlsnEntry. Models the replica’s VLSNIndex + log and the feeder’s responses to EntryRequest.

Required Methods§

Source

fn last_sync(&self) -> Vlsn

Highest sync-point VLSN (VLSNRange.getLastSync) — the first matchpoint candidate.

Source

fn last_txn_end(&self) -> Vlsn

Highest commit/abort VLSN (VLSNRange.getLastTxnEnd) — the rollback safety boundary.

Source

fn first_vlsn(&self) -> Vlsn

First contiguous VLSN available (VLSNRange.getFirst). The search may not go below this.

Source

fn entry(&self, vlsn: Vlsn) -> Option<VlsnEntry>

Look up the entry at vlsn, or None if this node does not hold it.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§