Skip to main content

ProgressReporter

Trait ProgressReporter 

Source
pub trait ProgressReporter: WasmCompatSend + WasmCompatSync {
    // Required method
    fn report(&self, progress: f64, total: Option<f64>, message: Option<&str>);
}
Expand description

Reports progress for long-running tool operations.

Required Methods§

Source

fn report(&self, progress: f64, total: Option<f64>, message: Option<&str>)

Report progress.

§Arguments
  • progress - Current progress value.
  • total - Optional total value (for percentage calculation).
  • message - Optional status message.

Implementors§