ProgressReporter

Trait ProgressReporter 

Source
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

Required Methods§

Source

fn report_start(&self, total_size: u64, total_files: usize)

Source

fn report_progress(&self, current_size: u64, current_file: &str)

Source

fn report_file_complete(&self, file: &str, size: u64, duration: Duration)

Source

fn report_error(&self, file: &str, error: &SyncError)

Source

fn report_complete(&self, stats: &TransferStats)

Implementors§