pub struct BlockStats {Show 13 fields
pub data_blocks: usize,
pub data_bytes: u64,
pub parent_ref_blocks: usize,
pub parent_ref_bytes: u64,
pub zero_blocks: usize,
pub zero_bytes: u64,
pub min_block_size: u32,
pub max_block_size: u32,
pub avg_block_size: u32,
pub unique_blocks: usize,
pub dedup_blocks: usize,
pub dedup_bytes_saved: u64,
pub compressed_data_bytes: u64,
}Expand description
Per-block statistics for an archive.
Fields§
§data_blocks: usizeNumber of data blocks.
data_bytes: u64Total uncompressed bytes in data blocks.
parent_ref_blocks: usizeNumber of parent-reference blocks.
parent_ref_bytes: u64Total bytes represented by parent references.
zero_blocks: usizeNumber of zero (sparse) blocks.
zero_bytes: u64Total bytes represented by zero blocks.
min_block_size: u32Smallest data block size in bytes.
max_block_size: u32Largest data block size in bytes.
avg_block_size: u32Average data block size in bytes.
unique_blocks: usizeNumber of unique (non-duplicate) blocks.
dedup_blocks: usizeNumber of deduplicated blocks.
dedup_bytes_saved: u64Bytes saved by deduplication.
compressed_data_bytes: u64Total compressed bytes for data blocks.
Trait Implementations§
Source§impl Debug for BlockStats
impl Debug for BlockStats
Source§impl Default for BlockStats
impl Default for BlockStats
Source§fn default() -> BlockStats
fn default() -> BlockStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BlockStats
impl RefUnwindSafe for BlockStats
impl Send for BlockStats
impl Sync for BlockStats
impl Unpin for BlockStats
impl UnsafeUnpin for BlockStats
impl UnwindSafe for BlockStats
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