Struct transaction_pool::Transaction[][src]

pub struct Transaction<T> {
    pub insertion_id: u64,
    pub transaction: Arc<T>,
}

Internal representation of transaction.

Includes unique insertion id that can be used for scoring explictly, but internally is used to resolve conflicts in case of equal scoring (newer transactionsa are preferred).

Fields

Sequential id of the transaction

Shared transaction

Methods from Deref<Target = Arc<T>>

Trait Implementations

impl<T: Debug> Debug for Transaction<T>
[src]

Formats the value using the given formatter. Read more

impl<T> Clone for Transaction<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Deref for Transaction<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

impl<T> Send for Transaction<T> where
    T: Send + Sync

impl<T> Sync for Transaction<T> where
    T: Send + Sync