#[non_exhaustive]pub enum InspectError {
Unreadable {
path: String,
detail: String,
},
}Expand description
Why a bundle could not be inspected.
One variant today: every failure here is “the path is not a bundle we could
load”. The underlying okf_core::BundleError is rendered into the message
rather than wrapped, so this type stays free of the dependency in its public
shape.
#[non_exhaustive] because that set is closed by nothing but current
implementation — unlike super::Actor, whose three variants are closed by
§7 of the specification and which is deliberately exhaustive for that reason.
A second failure mode here (a bundle that loads but declares an OKF version
this crate cannot read, say) is an ordinary addition, and these crates are
published, so it must not be a breaking change.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unreadable
The path could not be loaded as an OKF bundle.
Trait Implementations§
Source§impl Debug for InspectError
impl Debug for InspectError
Source§impl Display for InspectError
impl Display for InspectError
Source§impl Error for InspectError
impl Error for InspectError
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()