pub struct RpmPackage { /* private fields */ }Expand description
A handle to one rpm. Coords authoritative; bytes lazy via RpmPackage::bytes.
Implementations§
Source§impl RpmPackage
impl RpmPackage
pub fn name(&self) -> &str
pub fn version(&self) -> &str
pub fn release(&self) -> &str
pub fn arch(&self) -> &str
Sourcepub fn epoch(&self) -> Option<&str>
pub fn epoch(&self) -> Option<&str>
The authoritative Epoch (from the header), or None when unset.
Sourcepub fn bytes(&self) -> Result<Vec<u8>>
pub fn bytes(&self) -> Result<Vec<u8>>
LAZY: pread + decompress the rpm bytes. The only I/O of the read API.
pub fn into_bytes(self) -> Result<Vec<u8>>
Auto Trait Implementations§
impl Freeze for RpmPackage
impl RefUnwindSafe for RpmPackage
impl Send for RpmPackage
impl Sync for RpmPackage
impl Unpin for RpmPackage
impl UnsafeUnpin for RpmPackage
impl UnwindSafe for RpmPackage
Blanket Implementations§
impl<T> Allocation for T
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