Skip to main content

ProgressFn

Trait Alias ProgressFn 

Source
trait ProgressFn = FnMut(&mut State<'_>) -> Result<()>;
Expand description

Progress callback signature used by the tracer loop.

The callback is invoked by the tracer loop to allow periodic UI updates or other bookkeeping. Implementations receive a mutable reference to the current State and may return an error to abort tracing.

§Arguments

  • &mut State - Mutable reference to the tracer State.

§Returns

A Result<()> where Ok(()) continues normal execution and Err aborts.