pub struct ArchiveInfo {Show 15 fields
pub version: u32,
pub block_size: u32,
pub compression: CompressionType,
pub parent_paths: Vec<String>,
pub features: ArchiveFeatures,
pub main_size: u64,
pub auxiliary_size: u64,
pub file_size: u64,
pub index_offset: u64,
pub main_pages: usize,
pub auxiliary_pages: usize,
pub metadata_offset: Option<u64>,
pub metadata_length: Option<u32>,
pub metadata: Option<String>,
pub block_stats: Option<BlockStats>,
}Expand description
Metadata extracted from an archive file.
Fields§
§version: u32Archive format version.
block_size: u32Block size in bytes.
compression: CompressionTypeCompression algorithm used.
parent_paths: Vec<String>Paths to parent archives for delta dedup.
features: ArchiveFeaturesFeature flags for this archive.
main_size: u64Total uncompressed size of the main stream.
auxiliary_size: u64Total uncompressed size of the auxiliary stream.
file_size: u64On-disk file size in bytes.
index_offset: u64Byte offset of the master index.
main_pages: usizeNumber of index pages for the main stream.
auxiliary_pages: usizeNumber of index pages for the auxiliary stream.
metadata_offset: Option<u64>Byte offset of embedded metadata, if any.
metadata_length: Option<u32>Length of embedded metadata in bytes.
metadata: Option<String>Decoded metadata string, if present.
block_stats: Option<BlockStats>Detailed block-level statistics.
Implementations§
Source§impl ArchiveInfo
impl ArchiveInfo
Sourcepub const fn total_uncompressed(&self) -> u64
pub const fn total_uncompressed(&self) -> u64
Returns the total uncompressed size (main + auxiliary).
Sourcepub fn compression_ratio(&self) -> f64
pub fn compression_ratio(&self) -> f64
Returns the compression ratio (uncompressed / file size).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArchiveInfo
impl RefUnwindSafe for ArchiveInfo
impl Send for ArchiveInfo
impl Sync for ArchiveInfo
impl Unpin for ArchiveInfo
impl UnsafeUnpin for ArchiveInfo
impl UnwindSafe for ArchiveInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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