pub enum BundleError {
Show 13 variants
Io(Error),
Json(Error),
Zip(ZipError),
InvalidManifest(String),
ChecksumMismatch {
path: String,
expected: String,
actual: String,
},
UnsupportedPlatform(String),
MissingFile(String),
LibraryNotFound(String),
VariantNotFound {
platform: String,
variant: String,
},
InvalidVariantName(String),
SchemaMismatch(String),
SignatureVerificationFailed(String),
NoPublicKey,
}Expand description
Errors that can occur during bundle operations.
Variants§
Io(Error)
I/O error during file operations.
Json(Error)
JSON parsing or serialization error.
Zip(ZipError)
ZIP archive error.
InvalidManifest(String)
Manifest validation error.
ChecksumMismatch
Checksum mismatch.
UnsupportedPlatform(String)
Platform not supported in this bundle.
MissingFile(String)
Missing required file in bundle.
LibraryNotFound(String)
Library file not found.
VariantNotFound
Requested variant not found for platform.
InvalidVariantName(String)
Invalid variant name format.
SchemaMismatch(String)
Schema mismatch when combining bundles.
SignatureVerificationFailed(String)
Signature verification failed.
NoPublicKey
No public key available for verification.
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
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()
Source§impl From<Error> for BundleError
impl From<Error> for BundleError
Source§impl From<Error> for BundleError
impl From<Error> for BundleError
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