Skip to main content

Module progress

Module progress 

Source
Expand description

Progress reporting.

A capture run over a full store matrix launches a browser per device and takes real seconds each. Silence for a minute is indistinguishable from a hang, so the core emits events and the caller decides how to render them.

The core deliberately does not print. A library that writes to stdout is unusable from a binding, and this crate is about to be consumed from Node and Python where the host owns the console.

Structs§

Collector
Collects outcomes in memory. Used by the bindings, which return a result object rather than streaming to a console.
DeviceEvent
Everything known about one finished device.
Silent
Discards everything. Useful for tests and for callers that want silence.
Summary
A tally of a finished run.
Tally
Tally outcomes without holding onto them.

Enums§

Outcome
What happened to one device.

Traits§

Progress
Events emitted as a run proceeds.

Functions§

bar
Render a current/total bar of the given width.
human
Format a duration the way a person reads it.