Skip to main content

ProgressEvent

Enum ProgressEvent 

Source
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).

Fields

§id: String

The step id.

§

StepResult

A step finished (ran or was skipped) with the given outcome.

Fields

§id: String

The step id.

§outcome: StepOutcome

What happened.

§

SubProgress

Incremental sub-progress for a step that reports a fraction. done/total are in the step’s own units.

Fields

§id: String

The step id.

§done: u64

Units done.

§total: u64

Units in total.

§

Activity

A curated one-line headline for the running step (“installing ffmpeg”) — the accent line in the live-detail pane.

Fields

§id: String

The step id.

§message: String

The headline.

§

SubLog

One raw subprocess line for the running step’s dim scrolling log tail.

Fields

§id: String

The step id.

§line: String

The raw line.

§

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

§id: String

The step id.

§done: u64

Bytes done.

§total: u64

Bytes in total, or 0 when unknown.

§label: String

The file being fetched.

§

Log

A forwarded log line (from the tracing layer).

Fields

§level: Level

The log level.

§line: String

The message.

§

Summary(Box<dyn SummaryView>)

The closing summary: render the success card / failure panel.

§

Finished

Stop the renderer loop and restore the terminal.

Trait Implementations§

Source§

impl Debug for ProgressEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more