pub enum ProgressEvent {
StepStarted {
id: String,
},
StepResult {
id: String,
outcome: StepOutcome,
},
SubProgress {
id: String,
done: u64,
total: u64,
},
Activity {
id: String,
message: String,
},
SubLog {
id: String,
line: String,
},
ByteProgress {
id: String,
done: u64,
total: u64,
label: String,
},
Log {
level: Level,
line: String,
},
Summary(Box<dyn SummaryView>),
Finished,
}Expand description
An event emitted from the step engine to the renderer thread.
Variants§
StepStarted
A step’s run() is about to execute (lights up its group’s spinner).
StepResult
A step finished (ran or was skipped) with the given outcome.
SubProgress
Incremental sub-progress for a step that reports a fraction.
done/total are in the step’s own units.
Activity
A curated one-line headline for the running step (“installing ffmpeg”) — the accent line in the live-detail pane.
SubLog
One raw subprocess line for the running step’s dim scrolling log tail.
ByteProgress
Byte-level download progress for the running step’s current file.
total is 0 when the size is unknown. label names the file so the
detail pane reads “service-name 4.2/8.1 MB”.
Fields
Log
A forwarded log line (from the tracing layer).
Summary(Box<dyn SummaryView>)
The closing summary: render the success card / failure panel.
Finished
Stop the renderer loop and restore the terminal.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ProgressEvent
impl !Sync for ProgressEvent
impl !UnwindSafe for ProgressEvent
impl Forget for ProgressEvent
impl Freeze for ProgressEvent
impl Move for ProgressEvent
impl Send for ProgressEvent
impl Unpin for ProgressEvent
impl UnsafeUnpin for ProgressEvent
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
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> ⓘ
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> ⓘ
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