Skip to main content

RESIZE_HISTORY_CAPACITY

Constant RESIZE_HISTORY_CAPACITY 

Source
pub const RESIZE_HISTORY_CAPACITY: usize = 32;
Expand description

Rendering-ready resize evidence summary for inspector/cockpit panels.

Wraps raw EvidenceSnapshots into a single coherent typed object that UI renderers can consume without understanding the internal ftui types.

§Ring buffer policy

The recent_resizes ring buffer holds the last RESIZE_HISTORY_CAPACITY entries. Each call to [update_from] checks whether the event_idx has advanced and, if so, pushes a new entry.

§Backfill/default semantics

All fields default to “no data” states. When evidence is absent:

  • regime"—"
  • degradation"—"
  • Numeric fields → 0 / 0.0
  • recent_resizes → empty VecDeque