Trait Ready

Source
pub trait Ready<T> {
    // Required method
    fn is_ready(&mut self, tx: &T) -> Readiness;
}
Expand description

A readiness indicator.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

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

Source§

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

Implementors§

Source§

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