[][src]Struct rpm::RPMPackage

pub struct RPMPackage {
    pub metadata: RPMPackageMetadata,
    pub content: Vec<u8>,
}

A complete rpm file.

Can either be created using the RPMPackageBuilder or used with parse to obtain from a file.

Fields

metadata: RPMPackageMetadata

Header and metadata structures.

Contains the constant lead as well as the metadata store.

content: Vec<u8>

The compressed or uncompressed files.

Implementations

impl RPMPackage[src]

pub fn parse<T: BufRead>(input: &mut T) -> Result<Self, RPMError>[src]

pub fn write<W: Write>(&self, out: &mut W) -> Result<(), RPMError>[src]

pub fn sign<S>(&mut self, signer: S) -> Result<(), RPMError> where
    S: Signing<RSA, Signature = Vec<u8>>, 
[src]

sign all headers (except for the lead) using an external key and store it as the initial header

pub fn verify_signature<V>(&self, verifier: V) -> Result<(), RPMError> where
    V: Verifying<RSA, Signature = Vec<u8>>, 
[src]

Verify the signature as present within the RPM package.

Auto Trait Implementations

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, 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>,