pub struct DebPackage { /* private fields */ }Expand description
A handle to one deb. Coords + control authoritative; bytes lazy.
Implementations§
Source§impl DebPackage
impl DebPackage
Sourcepub fn relative_path(&self) -> &str
pub fn relative_path(&self) -> &str
This package’s row key in the archive — its relative_path column.
The typed views answer by COORDINATE; this is the other direction, and it is what lets a caller holding a package handle ask the lookup sub-index (or fold a per-file digest, which is path-bound) without having to list the whole archive to find the row it already has.
pub fn name(&self) -> &str
pub fn version(&self) -> &str
pub fn arch(&self) -> &str
Sourcepub fn control(&self) -> Option<&str>
pub fn control(&self) -> Option<&str>
The raw control stanza from the control tarball, or None when the .deb
wasn’t parseable at ingest.
pub fn size(&self) -> u64
pub fn bytes(&self) -> Result<Vec<u8>>
pub fn into_bytes(self) -> Result<Vec<u8>>
Auto Trait Implementations§
impl Freeze for DebPackage
impl RefUnwindSafe for DebPackage
impl Send for DebPackage
impl Sync for DebPackage
impl Unpin for DebPackage
impl UnsafeUnpin for DebPackage
impl UnwindSafe for DebPackage
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