pub enum DeadlineAction {
Ignore,
Warn,
Skip,
Fault,
}Expand description
RFC-0052 / phase-296 W3b.5 — what the executor DOES when a dispatched
callback runs past its bound SC’s deadline_us. Distinct from
DeadlinePolicy (which says where the deadline COMES from); this is
the miss REACTION, lowered from the tier table’s deadline_policy
string (ignore | warn | skip | fault).
Variants§
Ignore
Measure nothing, report nothing (uncontracted default).
Warn
Push a deadline-miss-runtime violation onto the monitor drain.
Skip
Warn AND skip the offending SC’s remaining callbacks for the rest of this spin cycle (damage containment: a runaway callback does not get to also starve unrelated groups with its siblings).
Fault
Warn AND invoke the executor’s fault hook (panic when none is registered — on embedded targets that is a watchdog-visible stop).
Implementations§
Source§impl DeadlineAction
impl DeadlineAction
Sourcepub fn from_tier_str(s: &str) -> Self
pub fn from_tier_str(s: &str) -> Self
Lower the tier-table string ([tiers.<t>].deadline_policy).
Unknown strings map to Ignore — the bake already validated the
vocabulary; runtime tolerance here avoids a boot-time panic path.
Trait Implementations§
Source§impl Clone for DeadlineAction
impl Clone for DeadlineAction
Source§fn clone(&self) -> DeadlineAction
fn clone(&self) -> DeadlineAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeadlineAction
impl Debug for DeadlineAction
Source§impl Default for DeadlineAction
impl Default for DeadlineAction
Source§fn default() -> DeadlineAction
fn default() -> DeadlineAction
Source§impl PartialEq for DeadlineAction
impl PartialEq for DeadlineAction
Source§fn eq(&self, other: &DeadlineAction) -> bool
fn eq(&self, other: &DeadlineAction) -> bool
self and other values to be equal, and is used by ==.