Enum tc_transaction_graph::base_pool::Imported[][src]

pub enum Imported<Hash, Ex> {
    Ready {
        hash: Hash,
        promoted: Vec<Hash>,
        failed: Vec<Hash>,
        removed: Vec<Arc<Transaction<Hash, Ex>>>,
    },
    Future {
        hash: Hash,
    },
}

Successful import result.

Variants

Ready

Transaction was successfully imported to Ready queue.

Fields of Ready

hash: Hash

Hash of transaction that was successfully imported.

promoted: Vec<Hash>

Transactions that got promoted from the Future queue.

failed: Vec<Hash>

Transactions that failed to be promoted from the Future queue and are now discarded.

removed: Vec<Arc<Transaction<Hash, Ex>>>

Transactions removed from the Ready pool (replaced).

Future

Transaction was successfully imported to Future queue.

Fields of Future

hash: Hash

Hash of transaction that was successfully imported.

Implementations

impl<Hash, Ex> Imported<Hash, Ex>[src]

pub fn hash(&self) -> &Hash[src]

Returns the hash of imported transaction.

Trait Implementations

impl<Hash: Debug, Ex: Debug> Debug for Imported<Hash, Ex>[src]

impl<Hash: Eq, Ex: Eq> Eq for Imported<Hash, Ex>[src]

impl<Hash: PartialEq, Ex: PartialEq> PartialEq<Imported<Hash, Ex>> for Imported<Hash, Ex>[src]

impl<Hash, Ex> StructuralEq for Imported<Hash, Ex>[src]

impl<Hash, Ex> StructuralPartialEq for Imported<Hash, Ex>[src]

Auto Trait Implementations

impl<Hash, Ex> RefUnwindSafe for Imported<Hash, Ex> where
    Ex: RefUnwindSafe,
    Hash: RefUnwindSafe

impl<Hash, Ex> Send for Imported<Hash, Ex> where
    Ex: Send + Sync,
    Hash: Send + Sync

impl<Hash, Ex> Sync for Imported<Hash, Ex> where
    Ex: Send + Sync,
    Hash: Send + Sync

impl<Hash, Ex> Unpin for Imported<Hash, Ex> where
    Hash: Unpin

impl<Hash, Ex> UnwindSafe for Imported<Hash, Ex> where
    Ex: RefUnwindSafe,
    Hash: RefUnwindSafe + UnwindSafe

Blanket Implementations

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

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

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

impl<T> CheckedConversion for T[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,