pub struct WalLsn {
pub salt1: u32,
pub salt2: u32,
pub frame_index: usize,
}Expand description
The salt-qualified log-sequence identity of a WAL position — the seam the future
state-history-forensic [H] adapter maps onto LsnKind::SqliteWal.
A bare frame_index is meaningless across checkpoint resets (frames renumber), so
ordering is ALWAYS qualified by (salt1, salt2). The adapter must reconstruct
LsnKind::SqliteWal { salt1, salt2, frame_index } from exactly this triple — never
from a bare index.
Fields§
§salt1: u32Salt-1 of the owning segment (checkpoint generation).
salt2: u32Salt-2 of the owning segment (checkpoint generation).
frame_index: usize0-based frame index within that segment.
Trait Implementations§
impl Copy for WalLsn
impl Eq for WalLsn
Source§impl Ord for WalLsn
impl Ord for WalLsn
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 WalLsn
impl PartialOrd for WalLsn
impl StructuralPartialEq for WalLsn
Auto Trait Implementations§
impl Freeze for WalLsn
impl RefUnwindSafe for WalLsn
impl Send for WalLsn
impl Sync for WalLsn
impl Unpin for WalLsn
impl UnsafeUnpin for WalLsn
impl UnwindSafe for WalLsn
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