[][src]Trait transaction_pool::Ready

pub trait Ready<T> {
    fn is_ready(&mut self, tx: &T) -> Readiness;
}

A readiness indicator.

Required methods

fn is_ready(&mut self, tx: &T) -> Readiness

Returns true if transaction is ready to be included in pending block, given all previous transactions that were ready are already included.

NOTE: readiness of transactions will be checked according to Score ordering, the implementation should maintain a state of already checked transactions.

Loading content...

Implementations on Foreign Types

impl<T, A, B> Ready<T> for (A, B) where
    A: Ready<T>,
    B: Ready<T>, 
[src]

Loading content...

Implementors

impl<T, F> Ready<T> for F where
    F: FnMut(&T) -> Readiness
[src]

Loading content...