pub struct Progress<'a> { /* private fields */ }Expand description
Struct representing the progress by an in-flight transfer.
Implementations§
Source§impl<'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
Trait Implementations§
Source§impl<'a> Binding for Progress<'a>
impl<'a> Binding for Progress<'a>
Source§type Raw = *const git_indexer_progress
type Raw = *const git_indexer_progress
The raw type that allows you to interact with libgit2-sys.
Source§unsafe fn from_raw(raw: *const git_indexer_progress) -> Progress<'a>
unsafe fn from_raw(raw: *const git_indexer_progress) -> Progress<'a>
Build a git2 struct from its Binding::Raw value.
Source§fn raw(&self) -> *const git_indexer_progress
fn raw(&self) -> *const git_indexer_progress
Access the Binding::Raw value for a struct. Read more
Source§unsafe fn from_raw_opt<T>(raw: T) -> Option<Self>
unsafe fn from_raw_opt<T>(raw: T) -> Option<Self>
A null-handling version of Binding::from_raw. Read more
Auto Trait Implementations§
impl<'a> Freeze for Progress<'a>
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> UnsafeUnpin for Progress<'a>
impl<'a> UnwindSafe for Progress<'a>
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