pub enum CertificateError {
ParseError,
ZipError(ZipError),
StackError(ErrorStack),
SignerError,
InvalidFormat(u64, u64),
}Expand description
Represents all errors that can occur while handling certificates.
Variants§
ParseError
Failed to parse the certificate.
ZipError(ZipError)
An error occurred while parsing a ZIP archive within the certificate context.
StackError(ErrorStack)
An OpenSSL stack error occurred.
SignerError
A signing error occurred (e.g., invalid signer or signature verification failed).
InvalidFormat(u64, u64)
The certificate format is invalid because the block sizes do not match the expected values.
Trait Implementations§
Source§impl Debug for CertificateError
impl Debug for CertificateError
Source§impl Display for CertificateError
impl Display for CertificateError
Source§impl Error for CertificateError
impl Error for CertificateError
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<CertificateError> for APKError
impl From<CertificateError> for APKError
Source§fn from(source: CertificateError) -> Self
fn from(source: CertificateError) -> Self
Converts to this type from the input type.
Source§impl From<ErrorStack> for CertificateError
impl From<ErrorStack> for CertificateError
Source§fn from(source: ErrorStack) -> CertificateError
fn from(source: ErrorStack) -> CertificateError
Converts to this type from the input type.
Source§impl From<ZipError> for CertificateError
impl From<ZipError> for CertificateError
Source§fn from(source: ZipError) -> CertificateError
fn from(source: ZipError) -> CertificateError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CertificateError
impl RefUnwindSafe for CertificateError
impl Send for CertificateError
impl Sync for CertificateError
impl Unpin for CertificateError
impl UnsafeUnpin for CertificateError
impl UnwindSafe for CertificateError
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