pub struct Entry<'a> { /* private fields */ }Expand description
A member whose local file entry, extras, and optional data descriptor have been reconciled with the directory and checked for a consistent kind.
Implementations§
Source§impl Entry<'_>
impl Entry<'_>
Sourcepub fn directory(&self) -> &CentralDirectoryEntry
pub fn directory(&self) -> &CentralDirectoryEntry
Returns the member’s central directory entry.
Sourcepub fn record_range(&self) -> Range<u64> ⓘ
pub fn record_range(&self) -> Range<u64> ⓘ
Returns the member’s full byte range, including headers and any descriptor.
Sourcepub fn kind(&self) -> &EntryKind
pub fn kind(&self) -> &EntryKind
Returns the member’s kind, validated during local record resolution.
This does not decode payloads or apply an extraction policy.
Sourcepub fn unix_mode(&self) -> u16
pub fn unix_mode(&self) -> u16
Returns the UNIX file type and permission bits from external attributes.
This is zero for hosts other than UNIX and Darwin.
Sourcepub fn data_offset(&self) -> u64
pub fn data_offset(&self) -> u64
Returns the absolute position of the encoded payload.
Sourcepub fn has_unix_extra(&self) -> bool
pub fn has_unix_extra(&self) -> bool
Returns whether a PKWARE UNIX extra field was present in either header.
A field containing only the timestamp and ownership prefix counts as
present. Any file-type data is available through Self::kind.