Skip to main content

Partitionable

Trait Partitionable 

Source
pub trait Partitionable<C, R> {
    type PartitionedState: PartitionedState<C, R>;

    // Required method
    fn new(parts: usize) -> Self::PartitionedState;
}
Expand description

A trait for command–response pairs that can be partitioned across multiple workers via Partitioned.

Required Associated Types§

Source

type PartitionedState: PartitionedState<C, R>

The type which functions as the state machine for the partitioning.

Required Methods§

Source

fn new(parts: usize) -> Self::PartitionedState

Construct a PartitionedState for the command–response pair.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§