pub struct RepackInventory {
pub loose_objects: u64,
pub loose_bytes: u64,
pub pack_count: u64,
pub pack_bytes: u64,
pub duplicate_objects: u64,
pub packed_objects: u64,
}Expand description
Cheap storage facts used to decide whether a repack is worthwhile.
Fields§
§loose_objects: u64Objects currently stored loose.
loose_bytes: u64On-disk bytes occupied by loose objects.
pack_count: u64Active pack count.
pack_bytes: u64Bytes occupied by active pack and index files.
duplicate_objects: u64Pack entries whose identity also occurs in another active pack.
packed_objects: u64Total entries across active packs, including duplicates.
Implementations§
Source§impl RepackInventory
impl RepackInventory
Sourcepub fn fragmentation_bps(self) -> u16
pub fn fragmentation_bps(self) -> u16
Duplicate-entry fragmentation in basis points (10_000 == 100%).
Trait Implementations§
Source§impl Clone for RepackInventory
impl Clone for RepackInventory
Source§fn clone(&self) -> RepackInventory
fn clone(&self) -> RepackInventory
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 moreimpl Copy for RepackInventory
Source§impl Debug for RepackInventory
impl Debug for RepackInventory
Source§impl Default for RepackInventory
impl Default for RepackInventory
Source§fn default() -> RepackInventory
fn default() -> RepackInventory
Returns the “default value” for a type. Read more
impl Eq for RepackInventory
Source§impl PartialEq for RepackInventory
impl PartialEq for RepackInventory
impl StructuralPartialEq for RepackInventory
Auto Trait Implementations§
impl Freeze for RepackInventory
impl RefUnwindSafe for RepackInventory
impl Send for RepackInventory
impl Sync for RepackInventory
impl Unpin for RepackInventory
impl UnsafeUnpin for RepackInventory
impl UnwindSafe for RepackInventory
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