pub trait StateMachine<R> {
type Error: Error + Debug + 'static;
// Required method
fn apply(
&mut self,
record: &R,
chunk_id: ChunkId,
segment: Segment,
) -> Result<(), Self::Error>;
}pub trait StateMachine<R> {
type Error: Error + Debug + 'static;
// Required method
fn apply(
&mut self,
record: &R,
chunk_id: ChunkId,
segment: Segment,
) -> Result<(), Self::Error>;
}