pub struct DebArchive { /* private fields */ }
Expand description
An intermediary layer between the DebPackage struct and an actual .deb file.
This struct allows you to read and write built packages from and to the filesystem.
The contents of a DebArchive cannot be directly manipulated. To modify a DebArchive,
you must first convert it to a DebPackage with the to_package()
method, or open the
file using DebPackage’s from()
function.
Implementations§
Source§impl DebArchive
impl DebArchive
Sourcepub fn to_package(&self) -> Result<DebPackage>
pub fn to_package(&self) -> Result<DebPackage>
Converts DebArchive to DebPackage.
§Errors
This function may return an error if the archive’s control file (where all of a package’s metadata is stored) contains invalid syntax, or if part of the package is corrupted and can’t be read.
Auto Trait Implementations§
impl Freeze for DebArchive
impl RefUnwindSafe for DebArchive
impl Send for DebArchive
impl Sync for DebArchive
impl Unpin for DebArchive
impl UnwindSafe for DebArchive
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