pub struct CheckpointManifest {
pub segment_count: u32,
pub segments: Vec<CheckpointSegmentMeta>,
pub total_lsn_range: (u64, u64),
pub total_block_count: u64,
pub checksum: u64,
pub timestamp: u64,
}Expand description
Checkpoint manifest containing all segment metadata
Fields§
§segment_count: u32Number of segments in the checkpoint
segments: Vec<CheckpointSegmentMeta>Metadata for each segment
total_lsn_range: (u64, u64)Total LSN range across all segments
total_block_count: u64Total block count across all segments
checksum: u64Manifest checksum for validation
timestamp: u64Checkpoint timestamp
Implementations§
Source§impl CheckpointManifest
impl CheckpointManifest
Sourcepub fn add_segment(&mut self, meta: CheckpointSegmentMeta)
pub fn add_segment(&mut self, meta: CheckpointSegmentMeta)
Add a segment to the manifest
Sourcepub fn validate(&self) -> CheckpointResult<()>
pub fn validate(&self) -> CheckpointResult<()>
Validate manifest consistency
Trait Implementations§
Source§impl Clone for CheckpointManifest
impl Clone for CheckpointManifest
Source§fn clone(&self) -> CheckpointManifest
fn clone(&self) -> CheckpointManifest
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 moreSource§impl Debug for CheckpointManifest
impl Debug for CheckpointManifest
Auto Trait Implementations§
impl Freeze for CheckpointManifest
impl RefUnwindSafe for CheckpointManifest
impl Send for CheckpointManifest
impl Sync for CheckpointManifest
impl Unpin for CheckpointManifest
impl UnwindSafe for CheckpointManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more