#[non_exhaustive]pub enum JarError {
Show 16 variants
MissingManifest,
MalformedManifest {
file: String,
line: usize,
},
DuplicateSection {
file: String,
name: String,
},
MissingSignatureFile {
block: String,
},
MalformedSignatureBlock {
file: String,
source: Error,
},
UnsupportedSignatureBlock {
file: String,
},
UnknownSignerCertificate {
file: String,
},
SignatureAlgorithmMismatch {
file: String,
algorithm: ObjectIdentifier,
},
SignedAttributesMismatch {
file: String,
},
BadSignature {
file: String,
source: SignatureError,
},
UnsupportedDigest {
file: String,
},
InvalidDigest {
file: String,
},
ManifestDigestMismatch {
signature_file: String,
},
UnsignedEntry {
entry: String,
},
MissingEntry {
entry: String,
},
EntryDigestMismatch {
entry: String,
},
}Expand description
Why a JAR signature could not be read or did not verify.
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.
MissingManifest
MalformedManifest
DuplicateSection
MissingSignatureFile
MalformedSignatureBlock
UnsupportedSignatureBlock
UnknownSignerCertificate
SignatureAlgorithmMismatch
SignedAttributesMismatch
BadSignature
UnsupportedDigest
InvalidDigest
ManifestDigestMismatch
UnsignedEntry
MissingEntry
EntryDigestMismatch
Trait Implementations§
Source§impl Error for JarError
impl Error for JarError
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 JarError
impl RefUnwindSafe for JarError
impl Send for JarError
impl Sync for JarError
impl Unpin for JarError
impl UnsafeUnpin for JarError
impl UnwindSafe for JarError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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