pub struct DebPackage { /* private fields */ }Expand description
A handle to one deb. Coords + control authoritative; bytes lazy.
Implementations§
Source§impl DebPackage
impl DebPackage
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