pub struct ArchiveEntry {
pub name: String,
pub compressed_size: u64,
pub uncompressed_size: u64,
pub crc: u32,
pub is_dir: bool,
}Expand description
Metadata for a single entry (file or directory) within an archive.
This struct contains information about an archive entry without
the actual file data. Use OpenPack::read_entry
to read the entry’s contents.
§Examples
use openpack::OpenPack;
for entry in pack.entries()? {
println!("{}: {} bytes", entry.name, entry.uncompressed_size);
}Fields§
§name: StringThe entry’s path name within the archive.
compressed_size: u64Size of the entry’s compressed data in bytes.
uncompressed_size: u64Size of the entry’s uncompressed data in bytes.
crc: u32CRC32 checksum of the uncompressed data.
is_dir: boolWhether this entry represents a directory.
Trait Implementations§
Source§impl Clone for ArchiveEntry
impl Clone for ArchiveEntry
Source§fn clone(&self) -> ArchiveEntry
fn clone(&self) -> ArchiveEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArchiveEntry
impl Debug for ArchiveEntry
Source§impl Default for ArchiveEntry
impl Default for ArchiveEntry
Source§fn default() -> ArchiveEntry
fn default() -> ArchiveEntry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ArchiveEntry
impl RefUnwindSafe for ArchiveEntry
impl Send for ArchiveEntry
impl Sync for ArchiveEntry
impl Unpin for ArchiveEntry
impl UnsafeUnpin for ArchiveEntry
impl UnwindSafe for ArchiveEntry
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