Enum zipsign_api::ZipsignError
source · #[non_exhaustive]pub enum ZipsignError {
GatherSignatureData(GatherSignatureDataError),
ReadSigningKeys(ReadSigningKeysError),
SignTar(SignTarError),
SignZip(SignZipError),
NoMatch(NoMatch),
CollectKeys(CollectKeysError),
ReadSignatures(ReadSignaturesError),
VerifyTar(VerifyTarError),
VerifyZip(VerifyZipError),
UnsignTar(UnsignTarError),
UnsignZip(UnsignZipError),
Io(Error),
}
Expand description
A collection of all errors this library can return
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.
GatherSignatureData(GatherSignatureDataError)
An error returned by gather_signature_data()
ReadSigningKeys(ReadSigningKeysError)
An error returned by read_signing_keys()
SignTar(SignTarError)
Available on crate feature
sign-tar
only.An error returned by copy_and_sign_tar()
SignZip(SignZipError)
Available on crate feature
sign-zip
only.An error returned by copy_and_sign_zip()
NoMatch(NoMatch)
No matching key/signature pair found
CollectKeys(CollectKeysError)
An error returned by collect_keys()
ReadSignatures(ReadSignaturesError)
An error returned by read_signatures()
VerifyTar(VerifyTarError)
Available on crate feature
verify-tar
only.An error returned by verify_tar()
VerifyZip(VerifyZipError)
Available on crate feature
verify-zip
only.An error retuned by verify_zip()
UnsignTar(UnsignTarError)
Available on crate feature
unsign-tar
only.An error returned by copy_and_unsign_tar()
UnsignZip(UnsignZipError)
Available on crate feature
unsign-zip
only.An error returned by copy_and_unsign_zip()
Io(Error)
An I/O occurred
Trait Implementations§
source§impl Debug for ZipsignError
impl Debug for ZipsignError
source§impl Display for ZipsignError
impl Display for ZipsignError
source§impl Error for ZipsignError
impl Error for ZipsignError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<CollectKeysError> for ZipsignError
impl From<CollectKeysError> for ZipsignError
source§fn from(source: CollectKeysError) -> Self
fn from(source: CollectKeysError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ZipsignError
impl From<Error> for ZipsignError
source§impl From<GatherSignatureDataError> for ZipsignError
impl From<GatherSignatureDataError> for ZipsignError
source§fn from(source: GatherSignatureDataError) -> Self
fn from(source: GatherSignatureDataError) -> Self
Converts to this type from the input type.
source§impl From<NoMatch> for ZipsignError
impl From<NoMatch> for ZipsignError
source§impl From<ReadSignaturesError> for ZipsignError
impl From<ReadSignaturesError> for ZipsignError
source§fn from(source: ReadSignaturesError) -> Self
fn from(source: ReadSignaturesError) -> Self
Converts to this type from the input type.
source§impl From<ReadSigningKeysError> for ZipsignError
impl From<ReadSigningKeysError> for ZipsignError
source§fn from(source: ReadSigningKeysError) -> Self
fn from(source: ReadSigningKeysError) -> Self
Converts to this type from the input type.
source§impl From<SignTarError> for ZipsignError
impl From<SignTarError> for ZipsignError
source§fn from(source: SignTarError) -> Self
fn from(source: SignTarError) -> Self
Converts to this type from the input type.
source§impl From<SignZipError> for ZipsignError
impl From<SignZipError> for ZipsignError
source§fn from(source: SignZipError) -> Self
fn from(source: SignZipError) -> Self
Converts to this type from the input type.
source§impl From<UnsignTarError> for ZipsignError
impl From<UnsignTarError> for ZipsignError
source§fn from(source: UnsignTarError) -> Self
fn from(source: UnsignTarError) -> Self
Converts to this type from the input type.
source§impl From<UnsignZipError> for ZipsignError
impl From<UnsignZipError> for ZipsignError
source§fn from(source: UnsignZipError) -> Self
fn from(source: UnsignZipError) -> Self
Converts to this type from the input type.
source§impl From<VerifyTarError> for ZipsignError
impl From<VerifyTarError> for ZipsignError
source§fn from(source: VerifyTarError) -> Self
fn from(source: VerifyTarError) -> Self
Converts to this type from the input type.
source§impl From<VerifyZipError> for ZipsignError
impl From<VerifyZipError> for ZipsignError
source§fn from(source: VerifyZipError) -> Self
fn from(source: VerifyZipError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ZipsignError
impl !RefUnwindSafe for ZipsignError
impl Send for ZipsignError
impl Sync for ZipsignError
impl Unpin for ZipsignError
impl !UnwindSafe for ZipsignError
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