#[non_exhaustive]pub struct ArchiveMemberMeta {
pub family: ArchiveFamily,
pub name: Vec<u8>,
pub packed_size: u64,
pub unpacked_size: u64,
pub file_time: Option<u32>,
pub file_attr: u64,
pub host_os: Option<u64>,
pub is_directory: bool,
pub is_encrypted: bool,
pub is_stored: bool,
pub is_split_before: bool,
pub is_split_after: bool,
}Expand description
Family-independent metadata for a file-like archive member.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.family: ArchiveFamilyArchive family that produced this member.
name: Vec<u8>Raw entry name bytes as stored by the archive.
packed_size: u64Packed payload size in bytes.
unpacked_size: u64Unpacked file size in bytes.
file_time: Option<u32>DOS/FAT timestamp when present.
file_attr: u64File attributes widened to a common integer type.
host_os: Option<u64>Host OS discriminator when present in the archive format.
is_directory: boolWhether the member is a directory.
is_encrypted: boolWhether the member payload is encrypted.
is_stored: boolWhether the member payload is stored without compression.
is_split_before: boolWhether the member continues from a previous volume.
is_split_after: boolWhether the member continues into the next volume.
Implementations§
Source§impl ArchiveMemberMeta
impl ArchiveMemberMeta
Sourcepub fn name_bytes(&self) -> &[u8] ⓘ
pub fn name_bytes(&self) -> &[u8] ⓘ
Raw member name bytes as stored by the archive family.
Sourcepub fn name_lossy(&self) -> String
pub fn name_lossy(&self) -> String
Returns the member name with invalid UTF-8 replaced for display only.
Use Self::name_bytes when exact archive bytes matter.
Trait Implementations§
Source§impl Clone for ArchiveMemberMeta
impl Clone for ArchiveMemberMeta
Source§fn clone(&self) -> ArchiveMemberMeta
fn clone(&self) -> ArchiveMemberMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArchiveMemberMeta
impl Debug for ArchiveMemberMeta
impl Eq for ArchiveMemberMeta
Source§impl PartialEq for ArchiveMemberMeta
impl PartialEq for ArchiveMemberMeta
impl StructuralPartialEq for ArchiveMemberMeta
Auto Trait Implementations§
impl Freeze for ArchiveMemberMeta
impl RefUnwindSafe for ArchiveMemberMeta
impl Send for ArchiveMemberMeta
impl Sync for ArchiveMemberMeta
impl Unpin for ArchiveMemberMeta
impl UnsafeUnpin for ArchiveMemberMeta
impl UnwindSafe for ArchiveMemberMeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more