pub struct ReplaySpec {
pub version: u32,
pub topology: ReplayTopology,
pub engine: Value,
pub adapters: ReplayAdapters,
pub max_sim_time_ms: Option<f64>,
pub max_in_flight: Option<usize>,
pub record_per_request: bool,
pub sla: SlaThresholds,
pub requests: Vec<ReplayRequest>,
}Expand description
Serializable input to one replay execution.
Provider descriptors are data only. A runner resolves them to concrete
placement/scaling implementations before constructing crate::replay::Replayer.
Fields§
§version: u32§topology: ReplayTopology§engine: Value§adapters: ReplayAdapters§max_sim_time_ms: Option<f64>Soft virtual-time cutoff. Events at the cutoff are processed; replay stops before the first event after it and leaves in-flight requests non-terminal in the report.
max_in_flight: Option<usize>Optional source-side in-flight cap. Requests whose authored arrival is ready remain outside the simulated system until an earlier request is terminal, matching closed-loop and replay-concurrency workloads.
record_per_request: boolWhether the report should retain one record per arrived request.
This defaults to true to preserve reports produced by version-1
execution specs written before this control was added.
sla: SlaThresholdsOptional latency targets used to calculate goodput.
requests: Vec<ReplayRequest>Implementations§
Source§impl ReplaySpec
impl ReplaySpec
pub fn validate(&self) -> ReplayResult<()>
Trait Implementations§
Source§impl Clone for ReplaySpec
impl Clone for ReplaySpec
Source§fn clone(&self) -> ReplaySpec
fn clone(&self) -> ReplaySpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more