pub struct TransferProgress {
pub received_bytes: u64,
pub received_objects: u64,
pub total_objects: Option<u64>,
pub indexed_deltas: u64,
}Expand description
Structured transfer statistics during a fetch/clone pack receive+index. All counters are monotonic within one operation and reset per operation.
Fields§
§received_bytes: u64Wire/pack bytes received so far. THE KB counter. No reliable total (smart-HTTP doesn’t announce pack size up front).
received_objects: u64Objects received/parsed from the pack so far.
total_objects: Option<u64>Total objects the server announced (pack header), once known — the
denominator for an object-count percentage. None until the header
is read.
indexed_deltas: u64Deltas resolved during the resolving-deltas phase (surface if cheap).
Trait Implementations§
Source§impl Clone for TransferProgress
impl Clone for TransferProgress
Source§fn clone(&self) -> TransferProgress
fn clone(&self) -> TransferProgress
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 TransferProgress
Source§impl Debug for TransferProgress
impl Debug for TransferProgress
Source§impl Default for TransferProgress
impl Default for TransferProgress
Source§fn default() -> TransferProgress
fn default() -> TransferProgress
Returns the “default value” for a type. Read more
impl Eq for TransferProgress
Source§impl PartialEq for TransferProgress
impl PartialEq for TransferProgress
impl StructuralPartialEq for TransferProgress
Auto Trait Implementations§
impl Freeze for TransferProgress
impl RefUnwindSafe for TransferProgress
impl Send for TransferProgress
impl Sync for TransferProgress
impl Unpin for TransferProgress
impl UnsafeUnpin for TransferProgress
impl UnwindSafe for TransferProgress
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