pub enum FileMoveFinished {
Created {
bytes_copied: u64,
method: FileMoveMethod,
},
Overwritten {
bytes_copied: u64,
method: FileMoveMethod,
},
Skipped,
}Expand description
Information about a successful file move operation.
See also: move_file.
Variants§
Created
Destination file was freshly created and the contents of the source
file were moved. method will describe how the move was made.
Fields
§
method: FileMoveMethodHow the move was accomplished.
Overwritten
Destination file existed, and was overwritten with the contents of the source file.
Fields
§
method: FileMoveMethodHow the move was accomplished.
Skipped
File was not moved because the destination file already existed.
This can be returned by move_file or move_file_with_progress
if options.colliding_file_behaviour is set to CollidingFileBehaviour::Skip.
Note that this means the source file still exists.
Trait Implementations§
Source§impl Clone for FileMoveFinished
impl Clone for FileMoveFinished
Source§fn clone(&self) -> FileMoveFinished
fn clone(&self) -> FileMoveFinished
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 FileMoveFinished
impl Debug for FileMoveFinished
Source§impl PartialEq for FileMoveFinished
impl PartialEq for FileMoveFinished
impl Copy for FileMoveFinished
impl Eq for FileMoveFinished
impl StructuralPartialEq for FileMoveFinished
Auto Trait Implementations§
impl Freeze for FileMoveFinished
impl RefUnwindSafe for FileMoveFinished
impl Send for FileMoveFinished
impl Sync for FileMoveFinished
impl Unpin for FileMoveFinished
impl UnwindSafe for FileMoveFinished
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