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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl BatchWorkload for CommandBatchWorkload
An implementation of the BatchWorkload trait for command family.