//! Event types for the discrete-event engine. use crate::router::BucketId; use crate::types::{InstanceId, ReqId}; #[derive(Debug)] pub enum Event { /// New trace request arrives at the cluster router. Arrival { req_id: ReqId }, /// Per-instance scheduler tick (continuous batching). BatchTick { bucket: BucketId, instance: InstanceId, }, /// Periodic time-series sample of all instances. Sample, /// Stop the simulation early (used internally). Stop, }