pub struct RunReport {
pub result: DataflowResult,
pub dropped: u64,
pub printed: usize,
pub abandoned: bool,
}Expand description
What one astrs run did.
Fields§
§result: DataflowResultThe daemon’s own verdict.
dropped: u64How many streamed items the terminal could not keep up with.
printed: usizeHow many lines reached the terminal.
abandoned: boolWhether the wait was abandoned rather than completed.
Implementations§
Source§impl RunReport
impl RunReport
Sourcepub fn exit_code(&self) -> i32
pub fn exit_code(&self) -> i32
The process exit code this run should produce (blueprint §17: “exit
code = DataflowResult severity”).
Three outcomes, not two: a run that finished cleanly, a run that failed, and a run whose verdict never became terminal at all. The third is not a failure of the graph — nothing is known about the graph — so it gets its own code rather than being folded into either neighbour, and a script can tell “my dataflow crashed” apart from “I gave up waiting for it”.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunReport
impl RefUnwindSafe for RunReport
impl Send for RunReport
impl Sync for RunReport
impl Unpin for RunReport
impl UnsafeUnpin for RunReport
impl UnwindSafe for RunReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more