#[non_exhaustive]pub enum HistoryBracket<'a, T> {
Empty,
Exact {
sample: (u64, &'a T),
},
Interpolated {
before: (u64, &'a T),
after: (u64, &'a T),
alpha: f64,
},
BeforeOldest {
oldest: (u64, &'a T),
},
AfterNewest {
newest: (u64, &'a T),
},
Clamped {
sample: (u64, &'a T),
},
Stale {
newest: (u64, &'a T),
minimum_newest_tick: u64,
},
}Expand description
Placement within actual retained samples; states are borrowed without cloning.
See the module recipe for exact selection, pose interpolation, eviction,
supplied-time staleness and reconnect. Only Interpolated supplies a weight;
neither a rounded endpoint weight nor a clamped result implies exact identity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Empty
No retained samples. No freshness claim can be made.
Exact
The query’s integer tick matches this sample and its normalized fraction is zero.
Interpolated
Consecutive retained samples strictly surround the query (including sparse gaps).
Fields
BeforeOldest
Query is earlier than all retained samples; no state was selected.
AfterNewest
Query is later than all retained samples; no state was selected.
Clamped
Out-of-range query explicitly selected the nearest endpoint, without extrapolation.
Stale
The newest retained tick is strictly below the caller’s inclusive cutoff.
This rejects the entire history before exact/range selection. It says nothing about elapsed wall time, the query’s age, or why updates stopped.