pub struct CentralDirectoryEntry { /* private fields */ }Expand description
Metadata retained from a member’s central directory entry.
Implementations§
Source§impl CentralDirectoryEntry
impl CentralDirectoryEntry
Sourcepub fn path(&self) -> &str
pub fn path(&self) -> &str
Returns the exact UTF-8 archive path, without filesystem normalization.
Sourcepub fn method(&self) -> CompressionMethod
pub fn method(&self) -> CompressionMethod
Returns the raw compression method selected by the headers.
Sourcepub fn compressed_size(&self) -> u64
pub fn compressed_size(&self) -> u64
Returns the encoded payload length, excluding headers and descriptors.
Sourcepub fn host_system(&self) -> HostSystem
pub fn host_system(&self) -> HostSystem
Returns the host-system interpretation of the external attributes.
Unrecognized identifiers are preserved as HostSystem::Unknown.
Sourcepub fn external_attributes(&self) -> u32
pub fn external_attributes(&self) -> u32
Returns the raw external file attributes, whose meaning depends on the host.
Sourcepub fn version_needed(&self) -> u16
pub fn version_needed(&self) -> u16
Returns the extraction version declared by the central directory entry.
Trait Implementations§
Auto Trait Implementations§
impl Forget for CentralDirectoryEntry
impl Freeze for CentralDirectoryEntry
impl Move for CentralDirectoryEntry
impl RefUnwindSafe for CentralDirectoryEntry
impl Send for CentralDirectoryEntry
impl Sync for CentralDirectoryEntry
impl Unpin for CentralDirectoryEntry
impl UnsafeUnpin for CentralDirectoryEntry
impl UnwindSafe for CentralDirectoryEntry
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