Trait transact::workload::BatchWorkload
source · 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§
sourcefn next_batch(
&mut self
) -> Result<(BatchPair, Option<ExpectedBatchResult>), InvalidStateError>
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§
impl BatchWorkload for CommandBatchWorkload
An implementation of the BatchWorkload
trait for command family.