Struct tc_transact::TxnId [−][src]
pub struct TxnId { /* fields omitted */ }The unique ID of a transaction, used for identity and ordering.
Implementations
impl TxnId[src]
impl TxnId[src]pub fn new(time: NetworkTime) -> Self[src]
Construct a new TxnId.
pub fn next(&self) -> Self[src]
Return the next valid TxnId after this one (e.g. to construct a range).
pub fn prev(&self) -> Self[src]
Return the last valid TxnId before this one (e.g. to construct a range).
pub fn time(&self) -> NetworkTime[src]
Return the timestamp of this TxnId.
pub fn to_id(&self) -> Id[src]
Convert this TxnId into an Id.
Trait Implementations
impl FromStream for TxnId[src]
impl FromStream for TxnId[src]type Context = ()
The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory. Read more
fn from_stream<'life0, 'async_trait, D: Decoder>(
    context: (), 
    d: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
    D: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, [src]
context: (),
d: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>> where
D: 'async_trait,
'life0: 'async_trait,
Self: 'async_trait,
impl<'en> IntoStream<'en> for TxnId[src]
impl<'en> IntoStream<'en> for TxnId[src]impl PartialOrd<TxnId> for TxnId[src]
impl PartialOrd<TxnId> for TxnId[src]impl StructuralEq for TxnId[src]
impl StructuralEq for TxnId[src]impl StructuralPartialEq for TxnId[src]
impl StructuralPartialEq for TxnId[src]Auto Trait Implementations
impl RefUnwindSafe for TxnId
impl RefUnwindSafe for TxnIdimpl UnwindSafe for TxnId
impl UnwindSafe for TxnIdBlanket Implementations
impl<T, F> CastInto<F> for T where
    F: CastFrom<T>, 
impl<T, F> CastInto<F> for T where
    F: CastFrom<T>, pub fn cast_into(self) -> F
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<F, T> TryCastFrom<F> for T where
    T: CastFrom<F>, 
impl<F, T> TryCastFrom<F> for T where
    T: CastFrom<F>, pub fn can_cast_from(&F) -> bool
pub fn opt_cast_from(f: F) -> Option<T>
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
    OnErr: FnOnce(&T) -> Err, 
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
    T: TryCastFrom<F>, 
impl<F, T> TryCastInto<T> for F where
    T: TryCastFrom<F>, pub fn can_cast_into(&self) -> bool
pub fn opt_cast_into(self) -> Option<T>
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
    OnErr: FnOnce(&Self) -> Err, 
OnErr: FnOnce(&Self) -> Err,
impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
impl<V, T> VZip<V> for T where
    V: MultiLane<T>,