Enum rpm::RPMError[][src]

#[non_exhaustive]
pub enum RPMError {
Show 26 variants Io(Error), Hex(FromHexError), Nom(String), InvalidMagic { expected: u8, actual: u8, complete_input: Vec<u8>, }, UnsupportedHeaderVersion(u8), InvalidTag { raw_tag: u32, store_type: &'static str, }, InvalidTagDataType { raw_data_type: u32, store_type: &'static str, }, TagNotFound(String), UnexpectedTagDataType { expected_data_type: &'static str, actual_data_type: String, tag: String, }, InvalidTagIndex { tag: String, index: u32, bound: u32, }, InvalidTagValueEnumVariant { tag: String, variant: u32, }, InvalidLeadMajorVersion(u8), InvalidLeadMinorVersion(u8), InvalidLeadPKGType(u16), InvalidLeadOSType(u16), InvalidLeadSignatureType(u16), InvalidReservedSpaceSize { expected: u16, actual: usize, }, InvalidDestinationPath { path: String, desc: &'static str, }, NoSignatureFound, SignError(Box<dyn Error>), KeyLoadError { source: Box<dyn Error>, details: &'static str, }, VerificationError { source: Box<dyn Error>, key_ref: String, }, KeyNotFoundError { key_ref: String, }, UnknownCompressorType(String), UnsupportedFileDigestAlgorithm(FileDigestAlgorithm), InvalidFileMode { raw_mode: i32, reason: &'static str, },
}

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.
Io(Error)

Tuple Fields of Io

0: Error

Tuple Fields of Hex

0: FromHexError
Nom(String)

Tuple Fields of Nom

0: String
InvalidMagic

Fields of InvalidMagic

expected: u8actual: u8complete_input: Vec<u8>
UnsupportedHeaderVersion(u8)

Tuple Fields of UnsupportedHeaderVersion

0: u8
InvalidTag

Fields of InvalidTag

raw_tag: u32store_type: &'static str
InvalidTagDataType

Fields of InvalidTagDataType

raw_data_type: u32store_type: &'static str
TagNotFound(String)

Tuple Fields of TagNotFound

0: String
UnexpectedTagDataType

Fields of UnexpectedTagDataType

expected_data_type: &'static stractual_data_type: Stringtag: String
InvalidTagIndex

Fields of InvalidTagIndex

tag: Stringindex: u32bound: u32
InvalidTagValueEnumVariant

Fields of InvalidTagValueEnumVariant

tag: Stringvariant: u32
InvalidLeadMajorVersion(u8)

Tuple Fields of InvalidLeadMajorVersion

0: u8
InvalidLeadMinorVersion(u8)

Tuple Fields of InvalidLeadMinorVersion

0: u8
InvalidLeadPKGType(u16)

Tuple Fields of InvalidLeadPKGType

0: u16
InvalidLeadOSType(u16)

Tuple Fields of InvalidLeadOSType

0: u16
InvalidLeadSignatureType(u16)

Tuple Fields of InvalidLeadSignatureType

0: u16
InvalidReservedSpaceSize

Fields of InvalidReservedSpaceSize

expected: u16actual: usize
InvalidDestinationPath

Fields of InvalidDestinationPath

path: Stringdesc: &'static str
NoSignatureFound
SignError(Box<dyn Error>)

Tuple Fields of SignError

0: Box<dyn Error>
KeyLoadError

Fields of KeyLoadError

source: Box<dyn Error>details: &'static str
VerificationError

Fields of VerificationError

source: Box<dyn Error>key_ref: String
KeyNotFoundError

Fields of KeyNotFoundError

key_ref: String
UnknownCompressorType(String)

Tuple Fields of UnknownCompressorType

0: String
UnsupportedFileDigestAlgorithm(FileDigestAlgorithm)

Tuple Fields of UnsupportedFileDigestAlgorithm

0: FileDigestAlgorithm
InvalidFileMode

Fields of InvalidFileMode

raw_mode: i32reason: &'static str

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.