Struct tc_transact::TxnId [−][src]
pub struct TxnId { /* fields omitted */ }
Expand description
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]
pub fn new(time: NetworkTime) -> Self
[src]Construct a new TxnId
.
pub fn prev(&self) -> Self
[src]
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]
pub fn time(&self) -> NetworkTime
[src]Return the timestamp of this TxnId
.
Trait Implementations
impl FromStream for TxnId
[src]
impl FromStream for TxnId
[src]impl<'en> IntoStream<'en> for TxnId
[src]
impl<'en> IntoStream<'en> for TxnId
[src]impl Ord for TxnId
[src]
impl Ord for TxnId
[src]impl PartialOrd<TxnId> for TxnId
[src]
impl PartialOrd<TxnId> for TxnId
[src]fn partial_cmp(&self, other: &TxnId) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &TxnId) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for TxnId
[src]
impl Eq for TxnId
[src]
impl StructuralEq for TxnId
[src]
impl StructuralPartialEq for TxnId
[src]
Auto Trait Implementations
impl RefUnwindSafe for TxnId
impl Send for TxnId
impl Sync for TxnId
impl Unpin for TxnId
impl UnwindSafe for TxnId
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
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 T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
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 can_cast_from(&F) -> bool
Test if value
can be cast into Self
.
pub fn opt_cast_from(f: F) -> Option<T>
pub fn opt_cast_from(f: F) -> Option<T>
Returns Some(Self)
if the source value can be cast into Self
, otherwise None
.
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self)
if the source value can be cast into Self
, otherwise calls on_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 can_cast_into(&self) -> bool
Test if self
can be cast into T
.
pub fn opt_cast_into(self) -> Option<T>
pub fn opt_cast_into(self) -> Option<T>
Returns Some(T)
if self
can be cast into T
, otherwise None
.
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
Returns Ok(T)
if self
can be cast into T
, otherwise calls on_err
.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,