Struct tc_transact::TxnId [−][src]
The unique ID of a transaction, used for identity and ordering.
Implementations
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 Clone for TxnId
[src]
impl Copy for TxnId
[src]
impl Debug for TxnId
[src]
impl Display for TxnId
[src]
impl Eq for TxnId
[src]
impl FromStr for TxnId
[src]
type Err = TCError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> TCResult<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 Hash for TxnId
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'en> IntoStream<'en> for TxnId
[src]
impl Ord for TxnId
[src]
fn cmp(&self, other: &TxnId) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<TxnId> for TxnId
[src]
impl PartialOrd<TxnId> for TxnId
[src]
fn partial_cmp(&self, other: &TxnId) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for TxnId
[src]
impl StructuralPartialEq for TxnId
[src]
impl<'en> ToStream<'en> 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<F, T> CastFrom<F> for T where
T: From<F>,
T: From<F>,
pub fn cast_from(f: F) -> T
impl<T, F> CastInto<F> for T where
F: CastFrom<T>,
F: CastFrom<T>,
pub fn cast_into(self) -> F
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<F> Match for F
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
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>,
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<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,