#[non_exhaustive]pub enum BundleLoadError {
Source {
member: String,
detail: String,
},
Parse {
what: String,
detail: String,
},
IntegrityMismatch {
expected: String,
recomputed: String,
expected_evidence: String,
recomputed_evidence: String,
},
StampMismatch {
field: &'static str,
lock_value: String,
member_value: String,
member: &'static str,
},
UnexpectedMember {
member: String,
},
}Expand description
Errors load surfaces — every one is fail-closed (the bundle is rejected,
the server never boots on a tampered/malformed bundle).
#[non_exhaustive] so future verification gates add variants additively.
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.
Source
A member’s bytes could not be read from the source.
Fields
Parse
A member’s JSON could not be parsed (malformed / truncated — T-92-04).
IntegrityMismatch
The recomputed integrity hashes do not match the on-disk lock (a tampered or swapped artifact — threat T-92-01). Carries a FOUND-vs-EXPECTED diagnostic.
Fields
StampMismatch
The lock’s identity/provenance triple does not bind to an independently hash-covered member (a tampered lock — threat T-92-02).
Fields
UnexpectedMember
The bundle contains a member outside the frozen allow-set (threat T-92-22).
Trait Implementations§
Source§impl Debug for BundleLoadError
impl Debug for BundleLoadError
Source§impl Display for BundleLoadError
impl Display for BundleLoadError
Source§impl Error for BundleLoadError
impl Error for BundleLoadError
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 BundleLoadError
impl RefUnwindSafe for BundleLoadError
impl Send for BundleLoadError
impl Sync for BundleLoadError
impl Unpin for BundleLoadError
impl UnsafeUnpin for BundleLoadError
impl UnwindSafe for BundleLoadError
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