pub struct TransferStats {
pub objects: u64,
pub bytes: u64,
pub kinds: Option<ObjectKindCounts>,
}Expand description
Object and byte counts for objects received during a fetch or clone.
Fields§
§objects: u64Objects installed from the received pack (zero when nothing was transferred).
bytes: u64Size in bytes of the received pack file (zero when nothing was transferred).
kinds: Option<ObjectKindCounts>Objects by type, when the pack was indexed locally (None when packs were
linked or copied from a local repository without being re-indexed).
Implementations§
Source§impl TransferStats
impl TransferStats
Sourcepub fn from_ingested_pack(ingested: &IngestedPack) -> Self
pub fn from_ingested_pack(ingested: &IngestedPack) -> Self
Build stats from an ingested pack (installed under objects/pack/ or written
into a custom primary store).
Trait Implementations§
Source§impl AddAssign for TransferStats
Totals across several transfers, such as every remote of a fetch-all.
impl AddAssign for TransferStats
Totals across several transfers, such as every remote of a fetch-all.
Counts and bytes add up. TransferStats::kinds stays known only while every
transfer that received objects reported its type breakdown.
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl Clone for TransferStats
impl Clone for TransferStats
impl Copy for TransferStats
Source§impl Debug for TransferStats
impl Debug for TransferStats
Source§impl Default for TransferStats
impl Default for TransferStats
impl Eq for TransferStats
Source§impl PartialEq for TransferStats
impl PartialEq for TransferStats
impl StructuralPartialEq for TransferStats
Auto Trait Implementations§
impl Freeze for TransferStats
impl RefUnwindSafe for TransferStats
impl Send for TransferStats
impl Sync for TransferStats
impl Unpin for TransferStats
impl UnsafeUnpin for TransferStats
impl UnwindSafe for TransferStats
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