pub enum StaticExecutionError {
WrongRealm(ExecutionRealm),
NotFirmwareSubset(McuPlanError),
ArenaTooSmall,
FanInTooWide(StepId),
NonDenseBuffers,
MissingBuffer(StepId),
MissingInvocation(StepId),
OutputArity(StepId),
KernelFault(StepId),
}Expand description
A structured fault raised by the statically linked MCU executor. Every variant is a bounded-arena or contract violation; the executor never allocates and never panics on well-formed firmware plans.
Variants§
WrongRealm(ExecutionRealm)
The plan was authorized for a different realm than McuAot.
NotFirmwareSubset(McuPlanError)
The plan is not a valid firmware subset (stateful, hierarchical, …).
ArenaTooSmall
A caller-owned arena was smaller than the plan’s exact requirement.
FanInTooWide(StepId)
A step declares more physical inputs than MAX_STATIC_STEP_INPUTS.
NonDenseBuffers
Buffer identities are not the dense 0..value_slots the executor indexes.
MissingBuffer(StepId)
A step read a buffer that no prior step in topological order produced.
MissingInvocation(StepId)
A step read an invocation input the caller did not supply.
OutputArity(StepId)
The kernel wrote a different output count than the step declares.
KernelFault(StepId)
The bound kernel reported a fault for this step.
Trait Implementations§
Source§impl Clone for StaticExecutionError
impl Clone for StaticExecutionError
Source§fn clone(&self) -> StaticExecutionError
fn clone(&self) -> StaticExecutionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for StaticExecutionError
Source§impl Debug for StaticExecutionError
impl Debug for StaticExecutionError
Source§impl Display for StaticExecutionError
impl Display for StaticExecutionError
impl Eq for StaticExecutionError
Source§impl Error for StaticExecutionError
Available on crate feature std only.
impl Error for StaticExecutionError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()