pub enum TxTimestampOrId {
Timestamp(u64),
Id(TxId),
}Expand description
Tagged-union “this version is in-flight under transaction id”
vs. “this version was committed at timestamp ts”. Per the plan,
row versions carry a begin: TxTimestampOrId so reads can ignore
versions belonging to still-open transactions while still seeing
the latest committed version.
Phase 11.4 will be the first consumer; defining it here keeps the type stable across the in-flight sub-phases so callers don’t have to chase a moving target.
Variants§
Timestamp(u64)
Committed timestamp — visible to any transaction whose
begin_ts >= this.
Id(TxId)
In-flight transaction id — invisible to every other reader until the producing transaction commits and stamps its versions with a timestamp.
Trait Implementations§
Source§impl Clone for TxTimestampOrId
impl Clone for TxTimestampOrId
Source§fn clone(&self) -> TxTimestampOrId
fn clone(&self) -> TxTimestampOrId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TxTimestampOrId
impl Debug for TxTimestampOrId
Source§impl PartialEq for TxTimestampOrId
impl PartialEq for TxTimestampOrId
Source§fn eq(&self, other: &TxTimestampOrId) -> bool
fn eq(&self, other: &TxTimestampOrId) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TxTimestampOrId
impl Eq for TxTimestampOrId
impl StructuralPartialEq for TxTimestampOrId
Auto Trait Implementations§
impl Freeze for TxTimestampOrId
impl RefUnwindSafe for TxTimestampOrId
impl Send for TxTimestampOrId
impl Sync for TxTimestampOrId
impl Unpin for TxTimestampOrId
impl UnsafeUnpin for TxTimestampOrId
impl UnwindSafe for TxTimestampOrId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.