pub trait ProgressReporter: Send + Sync {
// Required methods
fn report_start(&self, total_size: u64, total_files: usize);
fn report_progress(&self, current_size: u64, current_file: &str);
fn report_file_complete(&self, file: &str, size: u64, duration: Duration);
fn report_error(&self, file: &str, error: &SyncError);
fn report_complete(&self, stats: &TransferStats);
}Expand description
进度报告 trait