#[non_exhaustive]pub enum BundleError {
Archive(String),
Manifest(String),
Integrity(String),
Signature(String),
Workflow {
name: String,
message: String,
},
Secret(String),
Build(String),
Plugin {
plugin: String,
message: String,
},
Io {
path: String,
message: String,
},
}Expand description
Error building, opening or verifying a bundle.
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.
Archive(String)
The archive is not a valid zip or violates a safety limit.
Manifest(String)
The manifest is missing or malformed.
Integrity(String)
A file’s content does not match its recorded SHA-256.
Signature(String)
Signature missing, malformed, invalid or from an untrusted key.
Workflow
A workflow inside the bundle is invalid.
Secret(String)
A file would leak a secret (inline API key, token, password…).
Build(String)
Building the bundle failed (bad input file, missing workflow…).
Plugin
A bundled plugin could not be loaded.
Io
Filesystem error.
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 Forget for BundleError
impl Freeze for BundleError
impl Move 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