pub struct PackStats {
pub bytes: u64,
pub objects: u64,
pub copied: u64,
pub recompressed: u64,
}Expand description
The receipt for one GitServe::emit_pack.
copied and recompressed are the point — the P-001 applied-output
assertion. A byte count and a wall clock cannot tell a pack-copy from a
re-deflate: both produce a pack that passes git index-pack --strict and
git fsck, and the slow one is only visible as a number nobody was
recording. Both engines’ git-store-serve already emit exactly this
receipt, so a head-to-head stays a comparison rather than two anecdotes.
Fields§
§bytes: u64Bytes written to out, trailer included.
objects: u64Entries in the emitted pack.
copied: u64Entries whose stored payload went out byte for byte. Nothing was inflated and nothing was deflated for these.
recompressed: u64Entries whose payload was re-deflated. On a store that keeps pack entries verbatim this must be zero, and it is counted rather than assumed for exactly that reason.
Trait Implementations§
impl Copy for PackStats
impl Eq for PackStats
impl StructuralPartialEq for PackStats
Auto Trait Implementations§
impl Freeze for PackStats
impl RefUnwindSafe for PackStats
impl Send for PackStats
impl Sync for PackStats
impl Unpin for PackStats
impl UnsafeUnpin for PackStats
impl UnwindSafe for PackStats
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.