[−][src]Struct rpm::RPMPackage
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]
S: Signing<RSA, Signature = Vec<u8>>,
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]
V: Verifying<RSA, Signature = Vec<u8>>,
Verify the signature as present within the RPM package.
Auto Trait Implementations
impl RefUnwindSafe for RPMPackage
impl Send for RPMPackage
impl Sync for RPMPackage
impl Unpin for RPMPackage
impl UnwindSafe for RPMPackage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,