pub struct FileProgress {
pub bytes_finished: u64,
pub bytes_total: u64,
}Expand description
File copying or moving progress.
Primarily used in copy_file_with_progress and move_file_with_progress.
Fields§
§bytes_finished: u64Current number of bytes copied or moved to the destination.
bytes_total: u64Total number of bytes that must be copied or moved to the destination to complete the copy or move operation.
This value is always smaller or at most equal to
the bytes_finished field.
Trait Implementations§
Source§impl Clone for FileProgress
impl Clone for FileProgress
Source§fn clone(&self) -> FileProgress
fn clone(&self) -> FileProgress
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 FileProgress
impl Debug for FileProgress
Source§impl PartialEq for FileProgress
impl PartialEq for FileProgress
impl Eq for FileProgress
impl StructuralPartialEq for FileProgress
Auto Trait Implementations§
impl Freeze for FileProgress
impl RefUnwindSafe for FileProgress
impl Send for FileProgress
impl Sync for FileProgress
impl Unpin for FileProgress
impl UnwindSafe for FileProgress
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