Struct debarchive::Archive [−][src]
pub struct Archive<'a> { /* fields omitted */ }
Methods
impl<'a> Archive<'a>
[src]
impl<'a> Archive<'a>
pub fn new(path: &'a Path) -> Result<Self>
[src]
pub fn new(path: &'a Path) -> Result<Self>
The path given must be a valid Debian ar archive. It will be scanned to verify that the inner data.tar and control.tar entries are reachable, and records their position.
pub fn control<F: FnMut(&mut Entry<&mut Read>) -> Result<()>>(
&self,
action: F
) -> Result<()>
[src]
pub fn control<F: FnMut(&mut Entry<&mut Read>) -> Result<()>>(
&self,
action: F
) -> Result<()>
Enables the caller to process entries from the inner control archive.
pub fn control_extract<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
pub fn control_extract<P: AsRef<Path>>(&self, path: P) -> Result<()>
Unpacks the inner control archive to the given path.
pub fn control_map(&self) -> Result<BTreeMap<String, String>>
[src]
pub fn control_map(&self) -> Result<BTreeMap<String, String>>
pub fn data<F: FnMut(&mut Entry<&mut Read>) -> Result<()>>(
&self,
action: F
) -> Result<()>
[src]
pub fn data<F: FnMut(&mut Entry<&mut Read>) -> Result<()>>(
&self,
action: F
) -> Result<()>
Enables the caller to process entries from the inner data archive.
pub fn data_extract<P: AsRef<Path>>(&self, path: P) -> Result<()>
[src]
pub fn data_extract<P: AsRef<Path>>(&self, path: P) -> Result<()>
Unpacks the inner data archive to the given path.