#[non_exhaustive]pub enum ProcessEvent {
Started {
run_id: String,
},
Stdout {
run_id: String,
line: String,
},
Stderr {
run_id: String,
line: String,
},
Error {
run_id: String,
message: String,
},
Exited {
run_id: String,
exit_code: Option<i32>,
cancelled: bool,
},
}Expand description
Raw events emitted to the caller’s callback during a streaming run.
JSON-tagged so axum SSE and Tauri Channel render identical payloads
on the wire. Harness-neutral: a process-backed adapter parses the
Stdout lines into a normalized event vocabulary (e.g. agent-harness’s RunEvent).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Started
First event. Sent before the child has produced any output so the UI can show a “thinking…” state.
Stdout
Raw stdout line. Process-backed CLIs emit one JSON object per line in their streaming mode. The caller parses.
Stderr
Raw stderr line. Warnings + the occasional error.
Error
Spawn / IO failure. Terminal — followed by Exited.
Exited
Process exited. Always sent exactly once at the end.
Trait Implementations§
Source§impl Clone for ProcessEvent
impl Clone for ProcessEvent
Source§fn clone(&self) -> ProcessEvent
fn clone(&self) -> ProcessEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessEvent
impl Debug for ProcessEvent
Auto Trait Implementations§
impl Freeze for ProcessEvent
impl RefUnwindSafe for ProcessEvent
impl Send for ProcessEvent
impl Sync for ProcessEvent
impl Unpin for ProcessEvent
impl UnsafeUnpin for ProcessEvent
impl UnwindSafe for ProcessEvent
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