Skip to main content

AppEvent

Enum AppEvent 

Source
pub enum AppEvent {
Show 13 variants ReposDiscovered { repos: Vec<Repo>, session_activity: HashMap<String, u64>, }, ReposFound { repo: Repo, }, ScanComplete { search_dirs: Vec<(PathBuf, u16)>, }, WorktreeCreated { path: PathBuf, session_name: String, }, WorktreeRemoved { branch_name: String, worktree_path: PathBuf, }, WorktreeRemoveFailed { branch_name: String, worktree_path: PathBuf, error: String, }, BranchesLoaded { branches: Vec<BranchEntry>, worktrees: Vec<Worktree>, local_names: Vec<String>, session_activity: HashMap<String, u64>, }, RemoteBranchesLoaded { branches: Vec<BranchEntry>, }, GitFetchCompleted { branches: Vec<BranchEntry>, repo_path: PathBuf, is_final: bool, }, RepoEnriched { repo_path: PathBuf, worktrees: Vec<Worktree>, }, SessionActivityLoaded { session_activity: HashMap<String, u64>, }, AgentStatesUpdated { states: Vec<(String, Option<AgentStatus>)>, }, GitError(String),
}
Expand description

Events that arrive asynchronously from background tasks. These get merged into the main event loop alongside keyboard input.

Variants§

§

ReposDiscovered

Repository discovery completed (full batch — replaces repo list)

Fields

§repos: Vec<Repo>
§session_activity: HashMap<String, u64>
§

ReposFound

Single repo discovered during streaming scan (appended to existing list)

Fields

§repo: Repo
§

ScanComplete

All scan threads finished — triggers collision resolution and final sort. Carries search_dirs so collision resolution can use the correct search dir names.

Fields

§search_dirs: Vec<(PathBuf, u16)>
§

WorktreeCreated

A background git operation completed successfully

Fields

§path: PathBuf
§session_name: String
§

WorktreeRemoved

A worktree was successfully removed

Fields

§branch_name: String
§worktree_path: PathBuf
§

WorktreeRemoveFailed

A worktree removal failed

Fields

§branch_name: String
§worktree_path: PathBuf
§error: String
§

BranchesLoaded

Local branches loaded

Fields

§branches: Vec<BranchEntry>
§worktrees: Vec<Worktree>
§local_names: Vec<String>

Local branch names, needed to spawn remote branch loading

§session_activity: HashMap<String, u64>

Session activity timestamps

§

RemoteBranchesLoaded

Remote branches loaded (appended after local)

Fields

§branches: Vec<BranchEntry>
§

GitFetchCompleted

Background git fetch completed for one remote (or all remotes if is_final).

Fields

§branches: Vec<BranchEntry>
§repo_path: PathBuf
§is_final: bool

True when this is the last remote to finish, so the UI can clear the spinner.

§

RepoEnriched

Single repo enriched with worktree data (streamed from phase 2)

Fields

§repo_path: PathBuf
§worktrees: Vec<Worktree>
§

SessionActivityLoaded

Session activity data loaded (from tmux, sent once)

Fields

§session_activity: HashMap<String, u64>
§

AgentStatesUpdated

Agent states updated from background detection (full snapshot — None means no agent detected, allowing stale statuses to be cleared)

Fields

§

GitError(String)

A background git operation failed

Trait Implementations§

Source§

impl Clone for AppEvent

Source§

fn clone(&self) -> AppEvent

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AppEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.