Struct Checkpoint
pub struct Checkpoint {}Fields§
§shard: u32§shards: u32§lsn: LsnEvery record at or before this LSN is reflected here or in the store.
next_run: RunId§store_generation: u64§store_len: u64§created_ms: u64§runs: Vec<CheckpointRun>§outbox: Vec<u8>Messages to other shards not yet acknowledged (host-defined
encoding). The log after lsn regenerates newer ones.
log_position: u64Log format 3: the sequence of the first batch of the shared log that
can hold this shard’s records after lsn. 0 in format 2, where each
shard’s segments start after its checkpoint on their own.
index: Option<Vec<BlobRef>>Checkpoint format 3: the Index frames in the run store prefix that
together list every parked run, oldest first (later records for a run
supersede earlier ones). None: recovery scans the store.
obsolete: u64Bytes of the store prefix no longer in use, for compaction.
index_runs: u64Format 3: how many runs the index lists (it may hold more records, superseded ones), so recovery sizes the table once.
Implementations§
§impl Checkpoint
impl Checkpoint
Trait Implementations§
§impl Clone for Checkpoint
impl Clone for Checkpoint
§fn clone(&self) -> Checkpoint
fn clone(&self) -> Checkpoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for Checkpoint
impl Debug for Checkpoint
§impl PartialEq for Checkpoint
impl PartialEq for Checkpoint
impl Eq for Checkpoint
impl StructuralPartialEq for Checkpoint
Auto Trait Implementations§
impl Freeze for Checkpoint
impl RefUnwindSafe for Checkpoint
impl Send for Checkpoint
impl Sync for Checkpoint
impl Unpin for Checkpoint
impl UnsafeUnpin for Checkpoint
impl UnwindSafe for Checkpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more