[][src]Enum rpm::RPMError

#[non_exhaustive]pub enum RPMError {
    Io(Error),
    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,
    },
    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),
}

Variants (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)
Nom(String)
InvalidMagic

Fields of InvalidMagic

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

Fields of InvalidTag

raw_tag: u32store_type: &'static str
InvalidTagDataType

Fields of InvalidTagDataType

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

Fields of UnexpectedTagDataType

expected_data_type: &'static stractual_data_type: Stringtag: String
InvalidLeadMajorVersion(u8)
InvalidLeadMinorVersion(u8)
InvalidLeadPKGType(u16)
InvalidLeadOSType(u16)
InvalidLeadSignatureType(u16)
InvalidReservedSpaceSize

Fields of InvalidReservedSpaceSize

expected: u16actual: usize
InvalidDestinationPath

Fields of InvalidDestinationPath

path: Stringdesc: &'static str
NoSignatureFound
SignError(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)

Trait Implementations

impl Debug for RPMError[src]

impl Display for RPMError[src]

impl Error for RPMError[src]

impl<'_> From<Err<(&'_ [u8], ErrorKind)>> for RPMError[src]

impl From<Error> for RPMError[src]

Auto Trait Implementations

impl !RefUnwindSafe for RPMError

impl !Send for RPMError

impl !Sync for RPMError

impl Unpin for RPMError

impl !UnwindSafe for RPMError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,