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
Hex(FromHexError)
Tuple Fields of Hex
0: FromHexError
Nom(String)
Tuple Fields of Nom
0: String
UnsupportedHeaderVersion(u8)
Tuple Fields of UnsupportedHeaderVersion
0: u8
TagNotFound(String)
Tuple Fields of TagNotFound
0: String
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
Fields of KeyNotFoundError
key_ref: String
UnknownCompressorType(String)
Tuple Fields of UnknownCompressorType
0: String
UnsupportedFileDigestAlgorithm(FileDigestAlgorithm)
Tuple Fields of UnsupportedFileDigestAlgorithm
Trait Implementations
Performs the conversion.