#[non_exhaustive]pub enum ManifestError {
ParseError(String),
MissingRequired(&'static str),
TierBackendMismatch {
tier: u8,
backend: String,
},
SoftwareKekProductionRefused {
current: String,
},
VersionMismatch,
UnknownField(String),
InvalidValue {
field: &'static str,
reason: String,
},
}Expand description
Manifest-loading failure taxonomy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ParseError(String)
TOML parse or UTF-8 decode failure.
MissingRequired(&'static str)
A required field was absent (reserved for future custom checks
beyond what serde(deny_unknown_fields) already enforces).
TierBackendMismatch
Compliance-tier / DEK-backend pair is inconsistent.
SoftwareKekProductionRefused
software-kek is allowed only on Tier-0 dev runs; production
runtimes (runtime_current > 0.15) reject it.
VersionMismatch
runtime_max lexicographically precedes runtime_current (illegal
because the shell would claim forward-compat to a version less than
the one it tested).
UnknownField(String)
Reserved — future custom deserializer returns this when extracting
the offending key from a deny_unknown_fields failure.
InvalidValue
Field failed a validation predicate (e.g. malformed semver).
Trait Implementations§
Source§impl Debug for ManifestError
impl Debug for ManifestError
Source§impl Display for ManifestError
impl Display for ManifestError
Source§impl Error for ManifestError
impl Error for ManifestError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ManifestError
impl RefUnwindSafe for ManifestError
impl Send for ManifestError
impl Sync for ManifestError
impl Unpin for ManifestError
impl UnsafeUnpin for ManifestError
impl UnwindSafe for ManifestError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more