Trait ProgressInfo

Source
pub trait ProgressInfo {
    // Provided methods
    fn start(&mut self, source: &str, destination: &str) { ... }
    fn new_file(&mut self, name: &str) { ... }
    fn done_syncing(&mut self) { ... }
    fn progress(&mut self, progress: &Progress) { ... }
    fn end(&mut self, stats: &Stats) { ... }
    fn error(&mut self, entry: &str, details: &str) { ... }
}
Expand description

Trait for implementing rusync progress details

Provided Methods§

Source

fn start(&mut self, source: &str, destination: &str)

A new transfer has begun from the source directory to the destination directory

Source

fn new_file(&mut self, name: &str)

A new file named name is being transfered

Source

fn done_syncing(&mut self)

The file transfer is done

Source

fn progress(&mut self, progress: &Progress)

Callback for the detailed progress

Source

fn end(&mut self, stats: &Stats)

The transfer between source and destination is done. Details of the transfer in the Stats struct

Source

fn error(&mut self, entry: &str, details: &str)

The entry could not be synced

Implementors§