pub trait ScenarioStatsClaim {
// Required methods
fn claim_cgroups<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> SeqClaim<'a, CgroupStats>;
fn claim_total_workers<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, usize>;
fn claim_total_cpus<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, usize>;
fn claim_total_migrations<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_worst_spread<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_worst_gap_ms<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_worst_gap_cpu<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, usize>;
fn claim_worst_migration_ratio<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, f64>;
fn claim_total_iterations<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> ClaimBuilder<'a, u64>;
fn claim_phases<'a>(
&'a self,
verdict: &'a mut Verdict,
) -> SeqClaim<'a, PhaseBucket>;
}Expand description
Pointwise-claim accessors generated by #[derive(Claim)] on ScenarioStats. One claim_<field> method per public field, taking &mut Verdict as the accumulator; container fields (BTreeSet/Vec) route through SetClaim/SeqClaim. Method dispatch keys on the stats struct’s type, so identical field names across distinct stats structs do not collide. For prelude-exported stats types the trait is preluded, so use ktstr::prelude::* brings the accessors into scope; otherwise import the trait from the stats type’s module.