#[non_exhaustive]pub enum ProgressPhase {
ReceivingObjects,
EnumeratingObjects,
IndexingObjects,
ResolvingDeltas,
CopyingObjects,
CheckingOutFiles,
StagingFiles,
TransferringBundle,
}Expand description
A coarse phase of a long-running Git operation.
New variants may be added over time; match exhaustively only in the CLI or with a wildcard arm when forwarding unknown phases.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ReceivingObjects
Receiving a pack or loose objects from a remote or bundle stream.
EnumeratingObjects
Walking reachability to decide which objects a local fetch must copy.
IndexingObjects
Building or reading a pack index after objects are on disk.
ResolvingDeltas
Applying delta chains inside a pack.
CopyingObjects
Copying objects between local repositories (e.g. local fetch).
CheckingOutFiles
Updating the work tree to match a tree (checkout, reset –hard, clone).
StagingFiles
Hashing work-tree files into the index (add, auto-staging commit, stash push).
TransferringBundle
Downloading or uploading a bundle that can resume where it stopped
(clone’s bundle-uri bundle, a large push). Counted in bytes, including
any bytes an earlier run already moved; the detailed events go to
crate::fetch::Progress::resumable_transfer.
Implementations§
Source§impl ProgressPhase
impl ProgressPhase
Sourcepub fn default_unit(self) -> ProgressUnit
pub fn default_unit(self) -> ProgressUnit
Returns the unit callers should use when reporting counts for self.
Trait Implementations§
Source§impl Clone for ProgressPhase
impl Clone for ProgressPhase
impl Copy for ProgressPhase
Source§impl Debug for ProgressPhase
impl Debug for ProgressPhase
impl Eq for ProgressPhase
Source§impl Hash for ProgressPhase
impl Hash for ProgressPhase
Source§impl PartialEq for ProgressPhase
impl PartialEq for ProgressPhase
impl StructuralPartialEq for ProgressPhase
Auto Trait Implementations§
impl Freeze for ProgressPhase
impl RefUnwindSafe for ProgressPhase
impl Send for ProgressPhase
impl Sync for ProgressPhase
impl Unpin for ProgressPhase
impl UnsafeUnpin for ProgressPhase
impl UnwindSafe for ProgressPhase
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.