pub enum BranchViewOp {
Show 16 variants
BranchesLoaded {
local: Vec<String>,
remote: Vec<String>,
current: String,
},
LoadError(String),
CheckoutBranch,
CheckoutCompleted(String),
CheckoutError(String),
NewBranchOpen,
NewBranchInput(InputFieldOp),
NewBranchConfirm,
NewBranchCancel,
CreateCompleted(String),
CreateError(String),
DeleteRequested,
DeleteConfirmNeeded {
branch: String,
merged: bool,
},
DeleteConfirmed,
DeleteCompleted(String),
DeleteError(String),
}Variants§
BranchesLoaded
Async result: branch lists loaded on view open.
LoadError(String)
Async error while loading branches.
CheckoutBranch
User pressed Enter — intercepted by app.rs to spawn a checkout.
CheckoutCompleted(String)
Async result: checkout succeeded; carries the new current branch name.
CheckoutError(String)
Async result: checkout failed.
NewBranchOpen
User pressed ‘n’ — open the new-branch name input.
NewBranchInput(InputFieldOp)
Keystroke routed to the new-branch name input field.
NewBranchConfirm
User confirmed the new branch name (Enter while input is open). Intercepted by app.rs to spawn a create+checkout task.
NewBranchCancel
User cancelled the new-branch input (Esc).
CreateCompleted(String)
Async result: branch created and checked out.
CreateError(String)
Async result: branch creation failed.
DeleteRequested
User pressed Delete (first press) — app.rs checks merge status and replies with DeleteConfirmNeeded if required or performs immediate deletion.
DeleteConfirmNeeded
App replies that confirmation is required: (branch, merged)
DeleteConfirmed
User pressed Delete again to confirm (view converts to this when pending matches).
DeleteCompleted(String)
Async result: deletion succeeded — carries the deleted branch name.
DeleteError(String)
Async deletion failed.
Trait Implementations§
Source§impl Clone for BranchViewOp
impl Clone for BranchViewOp
Source§fn clone(&self) -> BranchViewOp
fn clone(&self) -> BranchViewOp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BranchViewOp
impl RefUnwindSafe for BranchViewOp
impl Send for BranchViewOp
impl Sync for BranchViewOp
impl Unpin for BranchViewOp
impl UnsafeUnpin for BranchViewOp
impl UnwindSafe for BranchViewOp
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