pub struct XLogRecPtr(/* private fields */);Expand description
A position (in bytes) in the write-ahead log, also called an LSN (Log Sequence Number).
Postgres’s XLogRecPtr, from
xlogdefs.h.
Holds a non-zero u64. 0 is Postgres’s InvalidXLogRecPtr, so None stands for it
in an Option<XLogRecPtr>.
See WAL Internals.
Implementations§
Trait Implementations§
Source§impl Clone for XLogRecPtr
impl Clone for XLogRecPtr
Source§fn clone(&self) -> XLogRecPtr
fn clone(&self) -> XLogRecPtr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XLogRecPtr
impl Debug for XLogRecPtr
Source§impl From<XLogRecPtr> for u64
impl From<XLogRecPtr> for u64
Source§fn from(lsn: XLogRecPtr) -> Self
fn from(lsn: XLogRecPtr) -> Self
Converts to this type from the input type.
Source§impl Hash for XLogRecPtr
impl Hash for XLogRecPtr
Source§impl Ord for XLogRecPtr
impl Ord for XLogRecPtr
Source§fn cmp(&self, other: &XLogRecPtr) -> Ordering
fn cmp(&self, other: &XLogRecPtr) -> Ordering
1.21.0 · 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 PartialEq for XLogRecPtr
impl PartialEq for XLogRecPtr
Source§impl PartialOrd for XLogRecPtr
impl PartialOrd for XLogRecPtr
impl Copy for XLogRecPtr
impl Eq for XLogRecPtr
impl StructuralPartialEq for XLogRecPtr
Auto Trait Implementations§
impl Freeze for XLogRecPtr
impl RefUnwindSafe for XLogRecPtr
impl Send for XLogRecPtr
impl Sync for XLogRecPtr
impl Unpin for XLogRecPtr
impl UnsafeUnpin for XLogRecPtr
impl UnwindSafe for XLogRecPtr
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