[][src]Trait rusync::progress::ProgressInfo

pub trait ProgressInfo {
    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) { ... } }

Trait for implementing rusync progress details

Provided methods

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

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

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

A new file named name is being transfered

fn done_syncing(&mut self)

The file transfer is done

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

Callback for the detailed progress

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

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

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

The entry could not be synced

Loading content...

Implementors

impl ProgressInfo for ConsoleProgressInfo[src]

Loading content...