pub struct Progress<'a> { /* private fields */ }
Expand description
Struct representing the progress by an in-flight transfer.
Implementations
sourceimpl<'a> Progress<'a>
impl<'a> Progress<'a>
sourcepub fn total_objects(&self) -> usize
pub fn total_objects(&self) -> usize
Number of objects in the packfile being downloaded
sourcepub fn indexed_objects(&self) -> usize
pub fn indexed_objects(&self) -> usize
Received objects that have been hashed
sourcepub fn received_objects(&self) -> usize
pub fn received_objects(&self) -> usize
Objects which have been downloaded
sourcepub fn local_objects(&self) -> usize
pub fn local_objects(&self) -> usize
Locally-available objects that have been injected in order to fix a thin pack.
sourcepub fn total_deltas(&self) -> usize
pub fn total_deltas(&self) -> usize
Number of deltas in the packfile being downloaded
sourcepub fn indexed_deltas(&self) -> usize
pub fn indexed_deltas(&self) -> usize
Received deltas that have been hashed.
sourcepub fn received_bytes(&self) -> usize
pub fn received_bytes(&self) -> usize
Size of the packfile received up to now
Auto Trait Implementations
impl<'a> RefUnwindSafe for Progress<'a>
impl<'a> !Send for Progress<'a>
impl<'a> !Sync for Progress<'a>
impl<'a> Unpin for Progress<'a>
impl<'a> UnwindSafe for Progress<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more