pub trait ProgressReporter: Send + Sync {
// Required methods
fn report_progress(&self, current: usize, total: Option<usize>);
fn report_complete(&self, result: &ScanResult);
fn report_error(&self, error: &Error);
}
Expand description
Progress reporter for scan operations
Required Methods§
Sourcefn report_progress(&self, current: usize, total: Option<usize>)
fn report_progress(&self, current: usize, total: Option<usize>)
Report progress with current file count and estimated total
Sourcefn report_complete(&self, result: &ScanResult)
fn report_complete(&self, result: &ScanResult)
Report completion
Sourcefn report_error(&self, error: &Error)
fn report_error(&self, error: &Error)
Report an error