pub struct ProgressSink { /* private fields */ }Expand description
A cheap, clonable handle the step engine emits events through. A sink with
no channel (the default, or RenderMode::Json) silently drops events.
Implementations§
Source§impl ProgressSink
impl ProgressSink
Sourcepub fn step_started(&self, id: &str)
pub fn step_started(&self, id: &str)
A step’s run() is about to execute.
Sourcepub fn step_result(&self, id: &str, outcome: &StepOutcome)
pub fn step_result(&self, id: &str, outcome: &StepOutcome)
A step finished (ran or skipped) with this outcome.
Sourcepub fn sub_progress(&self, id: &str, done: u64, total: u64)
pub fn sub_progress(&self, id: &str, done: u64, total: u64)
Incremental sub-progress for a step that reports a fraction.
Sourcepub fn activity(&self, id: &str, message: String)
pub fn activity(&self, id: &str, message: String)
Set the curated headline for the running step’s live-detail pane.
Sourcepub fn sub_log(&self, id: &str, line: &str)
pub fn sub_log(&self, id: &str, line: &str)
Emit one raw subprocess line into the running step’s log tail.
Sourcepub fn byte_progress(&self, id: &str, done: u64, total: u64, label: &str)
pub fn byte_progress(&self, id: &str, done: u64, total: u64, label: &str)
Byte-level download progress for the running step’s current file.
Sourcepub fn summary(&self, s: Box<dyn SummaryView>)
pub fn summary(&self, s: Box<dyn SummaryView>)
The closing summary (success card / failure panel).
Trait Implementations§
Source§impl Clone for ProgressSink
impl Clone for ProgressSink
Source§impl Debug for ProgressSink
impl Debug for ProgressSink
Auto Trait Implementations§
impl Forget for ProgressSink
impl Freeze for ProgressSink
impl Move for ProgressSink
impl RefUnwindSafe for ProgressSink
impl Send for ProgressSink
impl Sync for ProgressSink
impl Unpin for ProgressSink
impl UnsafeUnpin for ProgressSink
impl UnwindSafe for ProgressSink
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> 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