pub enum AppEvent<T = ()> {
Ui(Event),
Tick,
StreamChunk(String),
AgentMessage(String),
AgentPlan(Vec<String>),
AgentDone,
FileModified(String),
Custom(T),
}Expand description
Core TUI events shared across all agent apps.
Projects can extend this with their own events using the Custom(T) variant.
Variants§
Ui(Event)
Terminal UI event (key press, mouse, resize).
Tick
Periodic tick for animations/spinners.
StreamChunk(String)
Streaming text chunk from LLM (append to current message).
AgentMessage(String)
Complete agent response message.
AgentPlan(Vec<String>)
Agent plan updates.
AgentDone
Agent finished processing.
FileModified(String)
A file was modified by a tool (for preview refresh, git status, etc.).
Custom(T)
Project-specific custom event.
Auto Trait Implementations§
impl<T> Freeze for AppEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for AppEvent<T>where
T: RefUnwindSafe,
impl<T> Send for AppEvent<T>where
T: Send,
impl<T> Sync for AppEvent<T>where
T: Sync,
impl<T> Unpin for AppEvent<T>where
T: Unpin,
impl<T> UnsafeUnpin for AppEvent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AppEvent<T>where
T: UnwindSafe,
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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