[][src]Struct substrate_transaction_graph::base_pool::Transaction

pub struct Transaction<Hash, Extrinsic> {
    pub data: Extrinsic,
    pub bytes: usize,
    pub hash: Hash,
    pub priority: Priority,
    pub valid_till: Longevity,
    pub requires: Vec<Tag>,
    pub provides: Vec<Tag>,
}

Immutable transaction

Fields

data: Extrinsic

Raw extrinsic representing that transaction.

bytes: usize

Number of bytes encoding of the transaction requires.

hash: Hash

Transaction hash (unique)

priority: Priority

Transaction priority (higher = better)

valid_till: Longevity

At which block the transaction becomes invalid?

requires: Vec<Tag>

Tags required by the transaction.

provides: Vec<Tag>

Tags that this transaction provides.

Trait Implementations

impl<Hash: Eq, Extrinsic: Eq> Eq for Transaction<Hash, Extrinsic>[src]

impl<Hash: PartialEq, Extrinsic: PartialEq> PartialEq<Transaction<Hash, Extrinsic>> for Transaction<Hash, Extrinsic>[src]

impl<Hash, Extrinsic> Debug for Transaction<Hash, Extrinsic> where
    Hash: Debug,
    Extrinsic: Debug
[src]

Auto Trait Implementations

impl<Hash, Extrinsic> Send for Transaction<Hash, Extrinsic> where
    Extrinsic: Send,
    Hash: Send

impl<Hash, Extrinsic> Sync for Transaction<Hash, Extrinsic> where
    Extrinsic: Sync,
    Hash: Sync

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Erased for T[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> MaybeDebug for T where
    T: Debug
[src]