pub struct ShadowRunResult {
pub verdict: ShadowVerdict,
pub scenario_name: String,
pub seed: u64,
pub frame_comparisons: Vec<FrameComparison>,
pub first_divergence: Option<usize>,
pub frames_compared: usize,
pub baseline: LabOutput,
pub candidate: LabOutput,
pub baseline_label: String,
pub candidate_label: String,
pub run_total: u64,
}Expand description
Full result of a shadow-run comparison.
Fields§
§verdict: ShadowVerdictOverall verdict.
scenario_name: StringScenario name.
seed: u64Seed used for both lanes.
frame_comparisons: Vec<FrameComparison>Per-frame comparison details.
first_divergence: Option<usize>Index of the first divergent frame (if any).
frames_compared: usizeNumber of frames compared.
baseline: LabOutputBaseline lane output.
candidate: LabOutputCandidate lane output.
baseline_label: StringBaseline lane label.
candidate_label: StringCandidate lane label.
run_total: u64Total shadow runs executed in-process (including this one).
Implementations§
Source§impl ShadowRunResult
impl ShadowRunResult
Sourcepub fn diverged_count(&self) -> usize
pub fn diverged_count(&self) -> usize
Number of frames that diverged.
Sourcepub fn match_ratio(&self) -> f64
pub fn match_ratio(&self) -> f64
Fraction of frames that matched (0.0–1.0).
Trait Implementations§
Source§impl Clone for ShadowRunResult
impl Clone for ShadowRunResult
Source§fn clone(&self) -> ShadowRunResult
fn clone(&self) -> ShadowRunResult
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 ShadowRunResult
impl RefUnwindSafe for ShadowRunResult
impl Send for ShadowRunResult
impl Sync for ShadowRunResult
impl Unpin for ShadowRunResult
impl UnsafeUnpin for ShadowRunResult
impl UnwindSafe for ShadowRunResult
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