[][src]Trait muta_protocol::traits::MemPool

pub trait MemPool: Send + Sync {
    fn insert<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        tx: SignedTransaction
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: '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
        'life0: 'async_trait,
        Self: 'async_trait
; }

Required methods

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

Loading content...

Implementors

Loading content...