#[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
Re-export of the full boot surface (D-11) so Shape A/B consumers register a
served workbook WITHOUT ever naming pmcp-workbook-runtime: the
BundleSource trait + its on-disk impl, the fail-closed loader entry point,
and both error types. The EmbeddedSource impl is re-exported separately
under the workbook-embedded feature (it needs the runtime’s embedded
include_dir support).
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
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BundleLoadError> for ToolkitError
impl From<BundleLoadError> for ToolkitError
Source§fn from(source: BundleLoadError) -> Self
fn from(source: BundleLoadError) -> Self
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more