pub trait HistoricalStrategy {
type Error;
// Required methods
fn descriptor(&self) -> &StrategyDescriptor;
fn requirements(&self) -> &StrategyRequirements;
fn on_event(
&mut self,
event: StrategyEvent<'_>,
context: StrategyContext<'_>,
) -> Result<StrategyOutput, Self::Error>;
}Expand description
Stateful synchronous strategy evaluated once per complete replay timestamp.
Required Associated Types§
Required Methods§
fn descriptor(&self) -> &StrategyDescriptor
fn requirements(&self) -> &StrategyRequirements
fn on_event( &mut self, event: StrategyEvent<'_>, context: StrategyContext<'_>, ) -> Result<StrategyOutput, Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".