pub struct PackStreamProgress {
pub received_bytes: u64,
pub received_objects: u64,
pub total_objects: u64,
}Expand description
Streaming pack-receive counters emitted while [index_pack_from_stream]
parses a pack off a reader. All fields are monotonically non-decreasing
within one indexing pass.
Fields§
§received_bytes: u64Pack bytes consumed from the reader so far (header + object entries), i.e. the streaming pack offset. Advances during download for streaming transports; during the index walk for already-buffered ones.
received_objects: u64Objects parsed from the pack so far.
total_objects: u64Total objects declared by the pack header (known once the 12-byte header is read).
Trait Implementations§
Source§impl Clone for PackStreamProgress
impl Clone for PackStreamProgress
Source§fn clone(&self) -> PackStreamProgress
fn clone(&self) -> PackStreamProgress
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 PackStreamProgress
Source§impl Debug for PackStreamProgress
impl Debug for PackStreamProgress
Source§impl Default for PackStreamProgress
impl Default for PackStreamProgress
Source§fn default() -> PackStreamProgress
fn default() -> PackStreamProgress
Returns the “default value” for a type. Read more
impl Eq for PackStreamProgress
Source§impl PartialEq for PackStreamProgress
impl PartialEq for PackStreamProgress
impl StructuralPartialEq for PackStreamProgress
Auto Trait Implementations§
impl Freeze for PackStreamProgress
impl RefUnwindSafe for PackStreamProgress
impl Send for PackStreamProgress
impl Sync for PackStreamProgress
impl Unpin for PackStreamProgress
impl UnsafeUnpin for PackStreamProgress
impl UnwindSafe for PackStreamProgress
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