pub trait Processor: Send + Sync {
type Input;
type State: Send + Sync;
// Required methods
fn build_initial_state(&self) -> Self::State;
fn process(&self, input: Self::Input, state: &Self::State);
}
Expand description
Processes input data and modifies shared state based on the result.
Required Associated Types§
Required Methods§
Sourcefn build_initial_state(&self) -> Self::State
fn build_initial_state(&self) -> Self::State
Builds the initial state for the processor.