pub struct SyncStatus {Show 15 fields
pub dirs_copied: u64,
pub dirs_total: u64,
pub dirs_errors: u64,
pub dirs_deleted: u64,
pub files_copied: u64,
pub files_total: u64,
pub files_errors: u64,
pub files_deleted: u64,
pub links_copied: u64,
pub links_total: u64,
pub links_errors: u64,
pub links_deleted: u64,
pub permissions_errors: u64,
pub bytes_copied: u64,
pub bytes_total: u64,
}Fields§
§dirs_copied: u64§dirs_total: u64§dirs_errors: u64§dirs_deleted: u64§files_copied: u64§files_total: u64§files_errors: u64§files_deleted: u64§links_copied: u64§links_total: u64§links_errors: u64§links_deleted: u64§permissions_errors: u64§bytes_copied: u64§bytes_total: u64Implementations§
Source§impl SyncStatus
impl SyncStatus
pub fn entries_total(&self) -> u64
pub fn errors_total(&self) -> u64
pub fn copied_total(&self) -> u64
pub fn deleted_total(&self) -> u64
pub fn skipped_total(&self) -> u64
pub fn dirs_skipped(&self) -> u64
pub fn files_skipped(&self) -> u64
pub fn links_skipped(&self) -> u64
pub fn bytes_skipped(&self) -> u64
pub fn bandwidth_total(&self, elapsed: &Duration) -> u64
pub fn bandwidth_copied(&self, elapsed: &Duration) -> u64
pub fn bandwidth_skipped(&self, elapsed: &Duration) -> u64
pub fn merge(&self, other: &Self) -> Self
pub fn print(&self)
pub fn print_elapsed(&self, start_time: &Instant)
Trait Implementations§
Source§impl Clone for SyncStatus
impl Clone for SyncStatus
Source§fn clone(&self) -> SyncStatus
fn clone(&self) -> SyncStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyncStatus
impl Debug for SyncStatus
Source§impl Default for SyncStatus
impl Default for SyncStatus
Source§fn default() -> SyncStatus
fn default() -> SyncStatus
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SyncStatus
impl RefUnwindSafe for SyncStatus
impl Send for SyncStatus
impl Sync for SyncStatus
impl Unpin for SyncStatus
impl UnwindSafe for SyncStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more