[][src]Struct rusync::sync::Stats

pub struct Stats {
    pub num_files: u64,
    pub total_size: usize,
    pub total_transfered: u64,
    pub num_synced: u64,
    pub up_to_date: u64,
    pub copied: u64,
    pub errors: u64,
    pub symlink_created: u64,
    pub symlink_updated: u64,
    pub duration: Duration,
    // some fields omitted
}

Fields

num_files: u64

Number of files in the source

total_size: usize

Sum of the sizes of all the files in the source

total_transfered: u64

Sum of the sizes of all the files that were synced

num_synced: u64

Number of files transfered (should match num_files if no error)

up_to_date: u64

Number of files for which the copy was skipped

copied: u64

Number of files that were copied

errors: u64

Number of errors

symlink_created: u64

Number of symlink created in the destination folder

symlink_updated: u64

Number of symlinks updated in the destination folder

duration: Duration

Duration of the transfer

Implementations

impl Stats[src]

pub fn new() -> Stats[src]

pub fn start(&mut self)[src]

pub fn stop(&mut self)[src]

pub fn duration(&self) -> Duration[src]

pub fn add_error(&mut self)[src]

Trait Implementations

impl Debug for Stats[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.