pub enum OutputEvent {
Chunk(OutputChunk),
RunStarted {
attempt: u32,
started_at: SystemTime,
},
RunFinished {
attempt: u32,
exit_code: Option<i32>,
finished_at: SystemTime,
},
Lagged {
skipped: u64,
},
}Expand description
One event in the live-tail stream of a task.
Carries either an output line, a run boundary marker, or a backpressure signal.
Wire format is JSON-tagged on type:
{"type":"chunk","attempt":1,"stream":"stdout","seq":0,"ts":1700,"line":"..."}
{"type":"runStarted","attempt":1,"startedAt":1700}
{"type":"runFinished","attempt":1,"exitCode":0,"finishedAt":1701}
{"type":"lagged","skipped":42}Variants§
Chunk(OutputChunk)
One line of stdout/stderr from the currently active run.
RunStarted
A new run attempt has started; sequence numbers reset from this point on.
RunFinished
The current run finished. Consumers can stop accumulating chunks for this attempt.
Lagged
Subscriber fell behind the broadcast ring window.
Trait Implementations§
Source§impl Clone for OutputEvent
impl Clone for OutputEvent
Source§fn clone(&self) -> OutputEvent
fn clone(&self) -> OutputEvent
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 OutputEvent
impl Debug for OutputEvent
Source§impl<'de> Deserialize<'de> for OutputEvent
impl<'de> Deserialize<'de> for OutputEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OutputEvent
impl PartialEq for OutputEvent
Source§fn eq(&self, other: &OutputEvent) -> bool
fn eq(&self, other: &OutputEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OutputEvent
impl Serialize for OutputEvent
impl Eq for OutputEvent
impl StructuralPartialEq for OutputEvent
Auto Trait Implementations§
impl !Freeze for OutputEvent
impl RefUnwindSafe for OutputEvent
impl Send for OutputEvent
impl Sync for OutputEvent
impl Unpin for OutputEvent
impl UnsafeUnpin for OutputEvent
impl UnwindSafe for OutputEvent
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