pub struct CommitId {
pub segment: WalSegmentId,
pub commit_frame_index: usize,
pub db_size_after_commit: u32,
}Expand description
Address of a materializable database state: the replay of all valid frames up to
a COMMIT frame. CommitId = (segment, commit_frame_index, db_size_after_commit).
Fields§
§segment: WalSegmentIdThe salt segment this commit belongs to.
commit_frame_index: usize0-based file-order index of the COMMIT frame within the segment.
db_size_after_commit: u32db_size_after_commit recorded in the COMMIT frame header — the database’s
page count once this commit is materialized.
Trait Implementations§
impl Copy for CommitId
impl Eq for CommitId
Source§impl Ord for CommitId
impl Ord for CommitId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CommitId
impl PartialOrd for CommitId
impl StructuralPartialEq for CommitId
Auto Trait Implementations§
impl Freeze for CommitId
impl RefUnwindSafe for CommitId
impl Send for CommitId
impl Sync for CommitId
impl Unpin for CommitId
impl UnsafeUnpin for CommitId
impl UnwindSafe for CommitId
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