Skip to main content

BuildReporter

Trait BuildReporter 

Source
pub trait BuildReporter: Send + Sync {
    // Required methods
    fn step_started(&self, step: BuildStep<'_>);
    fn step_succeeded(&self, step: BuildStep<'_>);
    fn step_failed(&self, step: BuildStep<'_>);
    fn command_output(&self, output: &str);
}
Expand description

Receives progress events and streamed child-process output.

Required Methods§

Source

fn step_started(&self, step: BuildStep<'_>)

A step is about to run.

Source

fn step_succeeded(&self, step: BuildStep<'_>)

A step completed successfully.

Source

fn step_failed(&self, step: BuildStep<'_>)

A step failed.

Source

fn command_output(&self, output: &str)

Output emitted by a subprocess belonging to the current step.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§