Struct tinychain::txn::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) -> TxnId
[src]
Construct a new TxnId
.
pub fn next(&self) -> TxnId
[src]
Return the next valid TxnId after this one (e.g. to construct a range).
pub fn prev(&self) -> TxnId
[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
pub fn from_stream<'life0, 'async_trait, D>(
context: (),
d: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<TxnId, <D as Decoder>::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
D: Decoder + 'async_trait,
TxnId: 'async_trait,
[src]
context: (),
d: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<TxnId, <D as Decoder>::Error>> + 'async_trait + Send, Global>> where
'life0: 'async_trait,
D: Decoder + 'async_trait,
TxnId: '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 TxnId
impl UnwindSafe for TxnId
impl UnwindSafe for TxnId
Blanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]
impl<F, T> TryCastFrom<F> for T where
T: CastFrom<F>,
[src]pub fn can_cast_from(&F) -> bool
[src]
pub fn opt_cast_from(f: F) -> Option<T>
[src]
pub fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err> where
OnErr: FnOnce(&T) -> Err,
[src]
OnErr: FnOnce(&T) -> Err,
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]
impl<F, T> TryCastInto<T> for F where
T: TryCastFrom<F>,
[src]pub fn can_cast_into(&self) -> bool
[src]
pub fn opt_cast_into(self) -> Option<T>
[src]
pub fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err> where
OnErr: FnOnce(&Self) -> Err,
[src]
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>,