#[non_exhaustive]pub struct RepackStats {
pub loose_before: usize,
pub packs_before: usize,
pub objects_packed: Option<usize>,
pub pack_bytes: Option<u64>,
pub pack_path: Option<PathBuf>,
pub removed_pack_files: usize,
pub pruned_loose: usize,
pub unreachable_loose_pruned: usize,
pub unreachable_loose_kept: usize,
pub unreachable_prune_ms: u64,
pub unreachable_prune_ran: bool,
}Expand description
Extended counters and paths produced by repack_all.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.loose_before: usizeLoose object files before repack.
packs_before: usizePack files before repack.
objects_packed: Option<usize>Objects written into the new local pack, or estimated for a dry run.
None when no objects need packing.
pack_bytes: Option<u64>Bytes in the new local pack, excluding retained packs (None on dry run).
pack_path: Option<PathBuf>Path to the installed local pack, even when other packs are retained.
None on dry run or when nothing was packed.
removed_pack_files: usizeSidecar/index files removed from objects/pack/.
pruned_loose: usizeLoose objects removed because they were redundant with the new pack.
unreachable_loose_pruned: usizeUnreachable loose objects removed after repack when pruning is enabled.
unreachable_loose_kept: usizeUnreachable loose objects kept (grace window or concurrent safety).
unreachable_prune_ms: u64Wall time spent in unreachable loose-object pruning during this repack.
unreachable_prune_ran: boolTrue when unreachable loose-object pruning was executed (even if nothing was removed).
Trait Implementations§
Source§impl Clone for RepackStats
impl Clone for RepackStats
Source§impl Debug for RepackStats
impl Debug for RepackStats
Source§impl Default for RepackStats
impl Default for RepackStats
impl Eq for RepackStats
Source§impl PartialEq for RepackStats
impl PartialEq for RepackStats
impl StructuralPartialEq for RepackStats
Auto Trait Implementations§
impl Freeze for RepackStats
impl RefUnwindSafe for RepackStats
impl Send for RepackStats
impl Sync for RepackStats
impl Unpin for RepackStats
impl UnsafeUnpin for RepackStats
impl UnwindSafe for RepackStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.