pub struct Lsn(/* private fields */);Expand description
A write-ahead-log sequence number stamped into a page header.
page-db does not interpret the LSN; it carries the value so that a log
(wal-db) and the recovery code above can order a page against the log
records that describe it. Lsn::ZERO marks a page that has never been
associated with a log record.
Implementations§
Trait Implementations§
impl Copy for Lsn
Source§impl<'de> Deserialize<'de> for Lsn
impl<'de> Deserialize<'de> for Lsn
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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