pub struct OutputChunk {
pub attempt: u32,
pub stream: StreamKind,
pub seq: u64,
pub ts: SystemTime,
pub line: Bytes,
}Expand description
One line of output from a single task-run attempt.
Carried through tokio::sync::broadcast channels in-process;
sent to clients via SSE / gRPC server-stream.
Fields§
§attempt: u32Which attempt of the task this chunk belongs to (matches TaskRun::attempt).
stream: StreamKindstdout or stderr.
seq: u64Monotonic sequence number within this attempt; resets on next run.
ts: SystemTimeWall-clock time the line was read by the agent (unix milliseconds on the wire).
line: BytesOne line, already truncated/cleaned by the runner.
Trait Implementations§
Source§impl Clone for OutputChunk
impl Clone for OutputChunk
Source§fn clone(&self) -> OutputChunk
fn clone(&self) -> OutputChunk
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 OutputChunk
impl Debug for OutputChunk
Source§impl<'de> Deserialize<'de> for OutputChunk
impl<'de> Deserialize<'de> for OutputChunk
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 OutputChunk
impl PartialEq for OutputChunk
Source§fn eq(&self, other: &OutputChunk) -> bool
fn eq(&self, other: &OutputChunk) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OutputChunk
impl Serialize for OutputChunk
impl Eq for OutputChunk
impl StructuralPartialEq for OutputChunk
Auto Trait Implementations§
impl !Freeze for OutputChunk
impl RefUnwindSafe for OutputChunk
impl Send for OutputChunk
impl Sync for OutputChunk
impl Unpin for OutputChunk
impl UnsafeUnpin for OutputChunk
impl UnwindSafe for OutputChunk
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