Trait MemPool

Source
pub trait MemPool: Send + Sync {
    // Required methods
    fn insert<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx: SignedTransaction,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn package<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        cycle_limit: u64,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<MixedTxHashes>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn flush<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx_hashes: Vec<Hash>,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_full_txs<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx_hashes: Vec<Hash>,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<Vec<SignedTransaction>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn ensure_order_txs<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        order_tx_hashes: Vec<Hash>,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sync_propose_txs<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        propose_tx_hashes: Vec<Hash>,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn insert<'life0, 'async_trait>( &'life0 self, ctx: Context, tx: SignedTransaction, ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn package<'life0, 'async_trait>( &'life0 self, ctx: Context, cycle_limit: u64, ) -> Pin<Box<dyn Future<Output = ProtocolResult<MixedTxHashes>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn flush<'life0, 'async_trait>( &'life0 self, ctx: Context, tx_hashes: Vec<Hash>, ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_full_txs<'life0, 'async_trait>( &'life0 self, ctx: Context, tx_hashes: Vec<Hash>, ) -> Pin<Box<dyn Future<Output = ProtocolResult<Vec<SignedTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn ensure_order_txs<'life0, 'async_trait>( &'life0 self, ctx: Context, order_tx_hashes: Vec<Hash>, ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn sync_propose_txs<'life0, 'async_trait>( &'life0 self, ctx: Context, propose_tx_hashes: Vec<Hash>, ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§