Struct libpna::ArchiveReader
source · pub struct ArchiveReader<R> { /* private fields */ }Expand description
A reader for Portable-Network-Archive.
Implementations§
source§impl<R: Read> ArchiveReader<R>
impl<R: Read> ArchiveReader<R>
sourcepub fn read_header(reader: R) -> Result<Self>
pub fn read_header(reader: R) -> Result<Self>
Reads the archive header from the provided reader and returns a new ArchiveReader.
Arguments
reader- The reader to read from.
Returns
A new ArchiveReader.
Errors
Returns an error if an I/O error occurs while reading from the reader.
sourcepub fn entries(&mut self) -> impl Iterator<Item = Result<impl ReadEntry>> + '_
pub fn entries(&mut self) -> impl Iterator<Item = Result<impl ReadEntry>> + '_
Returns an iterator over the entries in the archive.
Returns
An iterator over the entries in the archive.