Notifier

Trait Notifier 

Source
pub trait Notifier: Send + Sync {
    // Required methods
    fn notify_success(&self, report: &SyncReport);
    fn notify_error(&self, error: &SyncError);
    fn notify_warning(&self, warning: &str);
    fn notify_progress(&self, progress: &ProgressUpdate);
}
Expand description

通知器 trait

Required Methods§

Source

fn notify_success(&self, report: &SyncReport)

Source

fn notify_error(&self, error: &SyncError)

Source

fn notify_warning(&self, warning: &str)

Source

fn notify_progress(&self, progress: &ProgressUpdate)

Implementors§