pub trait BatchWorkload: Send {
    // Required method
    fn next_batch(
        &mut self
    ) -> Result<(BatchPair, Option<ExpectedBatchResult>), InvalidStateError>;
}
Expand description

BatchWorkload provides an API for generating batches

Required Methods§

source

fn next_batch( &mut self ) -> Result<(BatchPair, Option<ExpectedBatchResult>), InvalidStateError>

Get a BatchPair and the result that is expected when that batch is processed and its transactions are executed

Implementors§

source§

impl BatchWorkload for CommandBatchWorkload

An implementation of the BatchWorkload trait for command family.

source§

impl BatchWorkload for SmallbankBatchWorkload

source§

impl BatchWorkload for XoBatchWorkload