#[non_exhaustive]pub enum PushPhase {
Scanning,
Hashing,
Connecting,
Negotiating,
Uploading,
Committing,
}Expand description
The step that a push is in.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Scanning
The client reads its source and builds the object list.
A tree push shows this phase from the start of its scan to the end of
the walk, which lists and filters each directory. Hash jobs can run in
this phase. A new PushProgress starts in this phase.
A tree scan sets this phase with PushProgress::start_phase before
its walk, and Repo::push_to_bucket sets it after its local checks.
Thus the hook of a tree scan and of Repo::push_to_bucket gets one
call with this phase, also on a new handle. A push that does not scan
a tree, such as Repo::push of the ostrya crate, does not set this
phase. Its first hook call has the phase
Connecting.
Hashing
The client hashes the files and the directories of a tree.
A tree push shows this phase after the walk. In this phase, the hash jobs that still run come to an end, and the client hashes the directories bottom-up.
Connecting
The session starts its transport and exchanges Hello with the server.
In this phase, an ssh client can ask for a password or a passphrase on the terminal.
Negotiating
The session exchanges Have with the server.
Uploading
The session sends objects.
Committing
The session sends Commit and waits for the reply.
Trait Implementations§
impl Copy for PushPhase
impl Eq for PushPhase
impl StructuralPartialEq for PushPhase
Auto Trait Implementations§
impl Forget for PushPhase
impl Freeze for PushPhase
impl Move for PushPhase
impl RefUnwindSafe for PushPhase
impl Send for PushPhase
impl Sync for PushPhase
impl Unpin for PushPhase
impl UnsafeUnpin for PushPhase
impl UnwindSafe for PushPhase
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.