Skip to main content

ModeTables

Struct ModeTables 

Source
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: u32

phase-462 W4c – how long ENTERING this mode may take, ms: its reaction path’s max_latency. 0 = the contract states none.

§reaction: &'static str

phase-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

Source§

fn clone(&self) -> ModeTables

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ModeTables

Source§

impl Debug for ModeTables

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.