pub enum StreamEvent {
TaskDiscovered {
task_id: TaskId,
task_name: String,
depends_on: Vec<String>,
},
TaskTransition {
task_id: TaskId,
task_name: String,
from: TaskState,
to: TaskState,
elapsed: Option<Duration>,
exit_code: Option<i32>,
detail: Option<String>,
at: DateTime<Utc>,
},
RunTransition {
run_id: Uuid,
from: RunState,
to: RunState,
reason: Option<String>,
at: DateTime<Utc>,
},
CommandOutput {
task_id: TaskId,
task_name: String,
line: String,
},
TransientStatus {
message: String,
},
ExplainUpdate {
summary: String,
},
TaskWorker {
task_id: TaskId,
worker_id: String,
},
RunStarted {
run_id: Uuid,
objective: String,
at: DateTime<Utc>,
},
RunExited {
payload: ContinuationPayload,
},
Tick,
}Expand description
Events the stream renderer can consume.
Variants§
TaskDiscovered
A task is known/planned for this run before transitions are emitted.
TaskTransition
A task changed state (Section 33: single structured line per transition).
Fields
RunTransition
A run changed state.
CommandOutput
Live command output from an executing task.
TransientStatus
A transient status message (e.g. “connecting to postgres…”). Shows only in inline viewport, never pushed to scrollback.
ExplainUpdate
A “Why Not Done?” summary update.
TaskWorker
A task’s worker assignment for display.
RunStarted
Run started — emitted once at the beginning so operators know the run ID.
RunExited
Run exited — structured continuation payload for downstream tooling.
Fields
§
payload: ContinuationPayloadTick
Tick event — advance spinners and refresh viewport.
Trait Implementations§
Source§impl Clone for StreamEvent
impl Clone for StreamEvent
Source§fn clone(&self) -> StreamEvent
fn clone(&self) -> StreamEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamEvent
impl RefUnwindSafe for StreamEvent
impl Send for StreamEvent
impl Sync for StreamEvent
impl Unpin for StreamEvent
impl UnsafeUnpin for StreamEvent
impl UnwindSafe for StreamEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request