Trait ProgressReporter

Source
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§

Source

fn report_progress(&self, current: usize, total: Option<usize>)

Report progress with current file count and estimated total

Source

fn report_complete(&self, result: &ScanResult)

Report completion

Source

fn report_error(&self, error: &Error)

Report an error

Implementors§