pub enum PackageError {
Malformed(DecodeError),
Signature(SignedError),
Unsigned,
ManifestHash,
ComponentHash,
Manifest,
}Expand description
A .zbot file that does not verify.
Variants§
Malformed(DecodeError)
Not a package file: wrong magic or container version, a part over its limit,
truncated or with trailing bytes, or a header that is not a canonical BotPackage.
Signature(SignedError)
The publisher signature does not verify (or is not a signature encoding).
Unsigned
The package is unsigned and the host does not accept unsigned packages.
ManifestHash
The manifest is not the one the header names.
ComponentHash
The component is not the one the header names.
Manifest
The manifest is not JSON with app_id and version equal to the header’s.
Trait Implementations§
Source§impl Clone for PackageError
impl Clone for PackageError
Source§fn clone(&self) -> PackageError
fn clone(&self) -> PackageError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackageError
impl Debug for PackageError
Source§impl Display for PackageError
impl Display for PackageError
impl Eq for PackageError
Source§impl Error for PackageError
impl Error for PackageError
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<DecodeError> for PackageError
impl From<DecodeError> for PackageError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<SignedError> for PackageError
impl From<SignedError> for PackageError
Source§fn from(source: SignedError) -> Self
fn from(source: SignedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PackageError
impl PartialEq for PackageError
impl StructuralPartialEq for PackageError
Auto Trait Implementations§
impl Freeze for PackageError
impl RefUnwindSafe for PackageError
impl Send for PackageError
impl Sync for PackageError
impl Unpin for PackageError
impl UnsafeUnpin for PackageError
impl UnwindSafe for PackageError
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