pub struct RPMPackage {
pub metadata: RPMPackageMetadata,
pub content: Vec<u8>,
}Expand description
A complete rpm file.
Can either be created using the RPMPackageBuilder
or used with parse to obtain from a file.
Fields§
§metadata: RPMPackageMetadataHeader and metadata structures.
Contains the constant lead as well as the metadata store.
content: Vec<u8>The compressed or uncompressed files.
Implementations§
Source§impl RPMPackage
impl RPMPackage
pub async fn parse_async<I: AsyncRead + Unpin>( input: &mut I, ) -> Result<Self, RPMError>
pub fn parse<T: BufRead>(input: &mut T) -> Result<Self, RPMError>
pub fn write<W: Write>(&self, out: &mut W) -> Result<(), RPMError>
pub async fn write_async<W: AsyncWrite + Unpin>( &self, out: &mut W, ) -> Result<(), RPMError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RPMPackage
impl RefUnwindSafe for RPMPackage
impl Send for RPMPackage
impl Sync for RPMPackage
impl Unpin for RPMPackage
impl UnwindSafe for RPMPackage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more