pub enum TxTimestampOrID {
Timestamp(u64),
TxID(TxID),
}Expand description
A transaction timestamp or ID.
Versions either track a timestamp or a transaction ID, depending on the
phase of the transaction. During the active phase, new versions track the
transaction ID in the begin and end fields. After a transaction commits,
versions switch to tracking timestamps.
Variants§
Timestamp(u64)
A committed transaction’s timestamp.
TxID(TxID)
The ID of a non-committed transaction.
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 moreimpl Copy for TxTimestampOrID
Source§impl Debug for TxTimestampOrID
impl Debug for TxTimestampOrID
Source§impl PartialEq for TxTimestampOrID
impl PartialEq for TxTimestampOrID
Source§impl PartialOrd for TxTimestampOrID
impl PartialOrd 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more