pub enum RuntimeError {
ZeroSchedulerThreads,
ZeroOperationTimeout,
Composition {
source: SchedulerCompositionError,
},
SupportModuleLoad {
detail: String,
},
SupportModuleAbsent {
module: String,
},
SupportModuleDeferredBifImports {
module: String,
imports: String,
},
SupportModulePurge {
module: String,
detail: String,
},
SupportModuleDelete {
module: String,
},
SupportModuleStillLoaded {
module: String,
},
ProcessResidue {
count: usize,
},
MailboxReservedRangeInvalid {
reserved_below: i64,
max: i64,
},
}Expand description
A typed refusal or failure from crate::runtime::ComponentRuntime or
crate::runtime::mailbox_integer.
Variants§
ZeroSchedulerThreads
The policy asked for zero scheduler threads. beamr would silently substitute the machine’s parallelism; the wrapper refuses instead — policy values are stated, never defaulted.
ZeroOperationTimeout
The policy asked for a zero operation timeout, which would make every spawn, mailbox round-trip, and tombstone observation time out immediately.
Composition
Scheduler composition (BIF population + construction) failed.
Fields
source: SchedulerCompositionErrorExact typed composition refusal.
SupportModuleLoad
The runtime refused or failed to hot-load a support module.
SupportModuleAbsent
A support module vanished from the committed table immediately after its hot load reported success.
SupportModuleDeferredBifImports
A freshly loaded support module’s committed import table still defers
erlang:* entries — process-fatal at first dispatch, refused up
front (the same wall the registry applies to component bytecode).
SupportModulePurge
A retained old generation of a support module could not be safely purged during unload.
Fields
SupportModuleDelete
Deleting a support module’s current generation failed — the module was not loaded (a stale handle) or still had unpurged old code.
SupportModuleStillLoaded
A support module was still committed after its verified unload — the runtime never reports an unload it cannot prove.
ProcessResidue
Final teardown was refused because the process tree still has residue; every component must complete its ordered stop first.
MailboxReservedRangeInvalid
The reserved bound handed to crate::runtime::mailbox_integer lies
outside the mailbox integer domain, leaving no valid value to fold
into.
Trait Implementations§
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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()