pub enum EdgeError {
UnverifiedModel,
SignatureRejected,
InvalidPhase {
expected: &'static str,
found: &'static str,
},
MemoryBudgetExceeded {
requested: u64,
budget: u64,
},
AirGapViolation,
Engine(&'static str),
CloudRequest(Box<str>),
Grammar(Box<str>),
}Expand description
Errors surfaced by the SDK. Variants carry only static descriptors and numeric context — never user content.
Variants§
UnverifiedModel
Attempted to load/use a model that has not reached Verified
(ADR-006 hard load gate).
SignatureRejected
Model signature verification failed (ADR-006).
InvalidPhase
Operation invalid for the current session phase (ADR-001 state machine).
MemoryBudgetExceeded
The static memory plan exceeds the configured budget (ADR-003).
AirGapViolation
A network egress was attempted while air-gapped (ADR-004).
Engine(&'static str)
Engine/adapter failure (message is a static descriptor, not user data).
CloudRequest(Box<str>)
Cloud request failed (ADR-010). Carries a heap-allocated message so dynamic error strings (HTTP status, URL) can be included without leaking.
Grammar(Box<str>)
Grammar constraint error (ADR-004). Heap-allocated for the same reason.
Trait Implementations§
impl Eq for EdgeError
Source§impl Error for EdgeError
impl Error for EdgeError
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()