pub enum ToolEvent {
Started {
tool_name: ToolName,
command: String,
},
OutputChunk {
tool_name: ToolName,
command: String,
chunk: String,
},
Completed {
tool_name: ToolName,
command: String,
output: String,
success: bool,
filter_stats: Option<FilterStats>,
diff: Option<DiffData>,
},
Rollback {
tool_name: ToolName,
command: String,
restored_count: usize,
deleted_count: usize,
},
}Expand description
Event emitted during tool execution for real-time UI updates.
Sent over the ToolEventTx channel to the TUI or channel adapter.
Each event variant corresponds to a phase in the tool execution lifecycle.
Variants§
Started
The tool has started. Displayed in the TUI as a spinner with the command text.
OutputChunk
A chunk of streaming output was produced (e.g. from a long-running command).
Completed
The tool finished. Contains the full output and optional filter/diff data.
Fields
§
filter_stats: Option<FilterStats>Rollback
A transactional rollback was performed, restoring or deleting files.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolEvent
impl RefUnwindSafe for ToolEvent
impl Send for ToolEvent
impl Sync for ToolEvent
impl Unpin for ToolEvent
impl UnsafeUnpin for ToolEvent
impl UnwindSafe for ToolEvent
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