Skip to main content

Module defect_counts

Module defect_counts 

Source
Expand description

The per-model defect counts — the data half of super::defects.

super::defects draws a line between a writer that never interprets and a reader that never guesses. This is the reader’s side of it: one plain struct of cumulative counts, serialised to the dashboard as it stands. Nearly all of this file is field documentation, because what a counter does not count is what a person reading a number needs to know, and it has to be said where the field is declared or it is said nowhere. Beside it, LoopGuardTrip: the one fact a writer hands over with a count, which detector raised a trip.

The ledger that bumps these lives in super::defects, which re-exports both, so gglib_core::domain::defects::ModelDefectCounts still names it.

Structs§

ModelDefectCounts
Cumulative defect counts for one model.

Enums§

LoopGuardTrip
Which of the loop guard’s two detectors raised a trip.