pub struct Lsn(pub u64);Expand description
Log Sequence Number. Newtype to prevent mixing with byte offsets/counts.
Lsn(0) is reserved as “none”; real records are dense starting at 1
(§6 of docs/wal_design_v6.md).
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
impl Copy for Lsn
impl Eq for Lsn
Source§impl Ord for Lsn
impl Ord for Lsn
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 Lsn
impl PartialOrd for Lsn
impl StructuralPartialEq for Lsn
Auto Trait Implementations§
impl Freeze for Lsn
impl RefUnwindSafe for Lsn
impl Send for Lsn
impl Sync for Lsn
impl Unpin for Lsn
impl UnsafeUnpin for Lsn
impl UnwindSafe for Lsn
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