Skip to main content

ProgressReporter

Trait ProgressReporter 

Source
pub trait ProgressReporter {
    // Required method
    fn report(&mut self, event: &DumpEvent) -> Result<(), Diagnostic>;
}
Expand description

Reports dump progress events to stderr (or any injected Write sink).

report is called once per event during a dump run. The action treats any returned Err as fatal (stderr-write failure is not silently ignored, for the same reason the renderer’s writeln! failures are not ignored).

Required Methods§

Source

fn report(&mut self, event: &DumpEvent) -> Result<(), Diagnostic>

Emit a progress event.

Returning Result is intentional — stderr writes can fail and the action treats a stderr-write failure as fatal, consistent with the renderer’s own Write calls.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§