Trait mz_service::client::PartitionedState
source · pub trait PartitionedState<C, R>: Debug + Send {
// Required methods
fn split_command(&mut self, command: C) -> Vec<Option<C>>;
fn absorb_response(
&mut self,
shard_id: usize,
response: R,
) -> Option<Result<R, Error>>;
}
Expand description
A state machine for a partitioned client that partitions commands across and amalgamates responses from multiple partitions.
Required Methods§
sourcefn split_command(&mut self, command: C) -> Vec<Option<C>>
fn split_command(&mut self, command: C) -> Vec<Option<C>>
Splits a command into multiple partitions.