pub enum BundleError {
Manifest(String),
SchemaVersion {
found: u32,
},
Runtime(String),
HashMismatch {
what: String,
expected: String,
actual: String,
},
Io(String),
MissingBlob {
key: String,
path: String,
},
}Expand description
Error surface for parsing / hashing a bundle manifest. The store feature
adds I/O + object-store variants (see store.rs).
Variants§
Manifest(String)
manifest.toml failed to parse.
SchemaVersion
A manifest carried a schema_version this build doesn’t understand.
Runtime(String)
A runtime = "..." string was neither self nor mesofact/<version>.
HashMismatch
Bytes hashed to a different digest than the manifest recorded. Carries the offending path (or blob key) plus both hashes.
Io(String)
Filesystem or object-store failure. Constructed by the assemble path
(always available) and by the store feature’s publish/materialize.
MissingBlob
A blob referenced by the manifest was absent from the store during
materialize (only constructed under store).
Trait Implementations§
Source§impl Debug for BundleError
impl Debug for BundleError
Source§impl Display for BundleError
impl Display for BundleError
Source§impl Error for BundleError
impl Error for BundleError
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 BundleError
impl RefUnwindSafe for BundleError
impl Send for BundleError
impl Sync for BundleError
impl Unpin for BundleError
impl UnsafeUnpin for BundleError
impl UnwindSafe for BundleError
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