pub struct ModeTables {
pub monitors: &'static [MonitorSpec],
pub ages: &'static [AgeMonitorSpec],
pub deadlines: &'static [ModeDeadline],
pub switch_budget_ms: u32,
pub reaction: &'static str,
}Expand description
phase-462 W4 – one contract MODE’s variant of an executor’s two monitor tables: the base tables’ rows in the base’s order, sharing the base’s cells, with the mode’s numbers.
Because the rows and cells are the base’s, a publisher or subscription
keeps the cell it bound at creation, and a hazard’s guard keeps the row
index it names; only the requirement each row is judged against changes.
The bake guarantees that shape (nros_orchestration_ir::mode_variants);
super::Executor::set_mode_tables refuses a table of another length.
Fields§
§monitors: &'static [MonitorSpec]The rate/latency table in this mode.
ages: &'static [AgeMonitorSpec]The age table in this mode.
deadlines: &'static [ModeDeadline]phase-462 W4c – the SchedContext deadlines this mode moves. Every mode’s table, the base’s included, lists the SAME contexts, so entering any mode leaves every moved deadline at that mode’s value.
switch_budget_ms: u32phase-462 W4c – how long ENTERING this mode may take, ms: its reaction
path’s max_latency. 0 = the contract states none.
reaction: &'static strphase-462 W4c – that reaction path’s key, the mode-switch-runtime
report’s endpoint ref (“” when there is none).
Trait Implementations§
Source§impl Clone for ModeTables
impl Clone for ModeTables
Source§fn clone(&self) -> ModeTables
fn clone(&self) -> ModeTables
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more