pub struct Xid(/* private fields */);Expand description
A transaction id, 64 bits, local to the node, assigned at the first write.
PostgreSQL clients see the low 32 bits as xid and the full value as xid8. PostgreSQL reserves the 32-bit values 0, 1 and 2, so the counter skips each value whose low 32 bits are one of them (spec/11 section 11.9).
Implementations§
Trait Implementations§
impl Copy for Xid
impl Eq for Xid
Source§impl Ord for Xid
impl Ord for Xid
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Xid
impl PartialOrd for Xid
impl StructuralPartialEq for Xid
Auto Trait Implementations§
impl Freeze for Xid
impl RefUnwindSafe for Xid
impl Send for Xid
impl Sync for Xid
impl Unpin for Xid
impl UnsafeUnpin for Xid
impl UnwindSafe for Xid
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