pub enum GitPullOp {
FetchCompleted {
can_fast_forward: bool,
upstream: String,
current_branch: String,
},
FetchError(String),
FastForwardCompleted,
FastForwardError(String),
RebaseCompleted,
RebaseError(String),
MergeCompleted,
MergeError(String),
ChoiceUp,
ChoiceDown,
ChoiceConfirm,
}Expand description
View-local operations for the Git Pull workflow view.
The pull flow is:
- Fetch remote (
FetchCompleted/FetchError) 2a. Fast-forward if possible (FastForwardCompleted/FastForwardError) 2b. Present rebase / merge choice; user navigates + confirms - Apply selected strategy (
RebaseCompleted/MergeCompleted/ errors)
Variants§
FetchCompleted
Fetch succeeded.
can_fast_forward is true when HEAD is an ancestor of the upstream
ref — i.e., a fast-forward merge is safe and will be applied
automatically. When false, the view shows the Rebase / Merge choice.
Fields
FetchError(String)
Fetch failed (network error, no remote configured, etc.).
FastForwardCompleted
Fast-forward completed successfully.
FastForwardError(String)
Fast-forward failed (should be rare — upstream diverged since fetch).
RebaseCompleted
Rebase on the upstream completed successfully.
RebaseError(String)
Rebase failed (conflicts or other errors).
MergeCompleted
Merge of the upstream completed successfully.
MergeError(String)
Merge failed.
ChoiceUp
Move the highlighted choice up.
ChoiceDown
Move the highlighted choice down.
ChoiceConfirm
Confirm the currently highlighted choice (Rebase / Merge / Cancel).
Intercepted by app.rs; the view does not need to spawn tasks.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitPullOp
impl RefUnwindSafe for GitPullOp
impl Send for GitPullOp
impl Sync for GitPullOp
impl Unpin for GitPullOp
impl UnsafeUnpin for GitPullOp
impl UnwindSafe for GitPullOp
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more