pub trait ScheduleControlHost: Send + Sync {
    // Required method
    fn fetch_tx_batch(
        &self,
        offset: Option<Hash>,
        limit: u32
    ) -> Result<Option<TxnBatch>, Error>;
}
Expand description

Interface to the runtime host that supports schedule control features.

Required Methods§

source

fn fetch_tx_batch( &self, offset: Option<Hash>, limit: u32 ) -> Result<Option<TxnBatch>, Error>

Fetch the specified set of transactions from the host’s transaction queue.

Offset specifies the transaction hash that should serve as an offset when returning transactions from the pool. Transactions will be skipped until the given hash is encountered and only following transactions will be returned.

Implementations on Foreign Types§

source§

impl ScheduleControlHost for Protocol

source§

fn fetch_tx_batch( &self, offset: Option<Hash>, limit: u32 ) -> Result<Option<TxnBatch>, Error>

Implementors§