pub struct ShadowRunConfig {
pub prefix: String,
pub scenario_name: String,
pub seed: u64,
pub viewport_width: u16,
pub viewport_height: u16,
pub time_step_ms: u64,
pub baseline_label: String,
pub candidate_label: String,
}Expand description
Configuration for a shadow-run comparison.
Fields§
§prefix: StringShared prefix for JSONL logger and run IDs.
scenario_name: StringScenario name used in tracing spans and JSONL.
seed: u64Deterministic seed (shared across both lanes).
viewport_width: u16Viewport width for frame captures.
viewport_height: u16Viewport height for frame captures.
time_step_ms: u64Time step in milliseconds for deterministic clocks.
baseline_label: StringLabel for the baseline lane (default: “baseline”).
candidate_label: StringLabel for the candidate lane (default: “candidate”).
Implementations§
Source§impl ShadowRunConfig
impl ShadowRunConfig
Sourcepub fn new(prefix: &str, scenario_name: &str, seed: u64) -> Self
pub fn new(prefix: &str, scenario_name: &str, seed: u64) -> Self
Create a new shadow-run configuration with defaults.
Defaults: 80×24 viewport, 16ms time step.
Sourcepub fn time_step_ms(self, ms: u64) -> Self
pub fn time_step_ms(self, ms: u64) -> Self
Set the deterministic time step in milliseconds.
Sourcepub fn lane_labels(self, baseline: &str, candidate: &str) -> Self
pub fn lane_labels(self, baseline: &str, candidate: &str) -> Self
Set custom lane labels.
Trait Implementations§
Source§impl Clone for ShadowRunConfig
impl Clone for ShadowRunConfig
Source§fn clone(&self) -> ShadowRunConfig
fn clone(&self) -> ShadowRunConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShadowRunConfig
impl RefUnwindSafe for ShadowRunConfig
impl Send for ShadowRunConfig
impl Sync for ShadowRunConfig
impl Unpin for ShadowRunConfig
impl UnsafeUnpin for ShadowRunConfig
impl UnwindSafe for ShadowRunConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more