pub struct WalHeader {
pub salt: u32,
pub checkpoint_seq: u32,
pub clock_high_water: u64,
}Expand description
Parsed WAL header. page_size is redundant with the engine’s compile-
time constant; we persist it for forward-compat and reject anything
that doesn’t match at open time.
Fields§
§salt: u32§checkpoint_seq: u32§clock_high_water: u64Phase 11.2 — the last MVCC logical-clock value persisted to
this WAL. Rewritten by truncate (= every checkpoint) so a
reopen-then-tick can never reuse a timestamp the previous run
already handed out. Always 0 for v1 WALs (the bytes were
reserved-zero before the bump); read back as 0 on any v1 file
that pre-existed this build.
Trait Implementations§
impl Copy for WalHeader
impl Eq for WalHeader
impl StructuralPartialEq for WalHeader
Auto Trait Implementations§
impl Freeze for WalHeader
impl RefUnwindSafe for WalHeader
impl Send for WalHeader
impl Sync for WalHeader
impl Unpin for WalHeader
impl UnsafeUnpin for WalHeader
impl UnwindSafe for WalHeader
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.