pub enum DirectoryMoveOperation {
CreatingDirectory {
target_path: PathBuf,
},
CopyingFile {
target_path: PathBuf,
progress: FileProgress,
},
CreatingSymbolicLink {
destination_symbolic_link_file_path: PathBuf,
},
RemovingSourceDirectory,
}Expand description
Describes a directory move operation.
Used in progress reporting in move_directory_with_progress.
Variants§
CreatingDirectory
Describes a directory creation operation.
CopyingFile
Describes a file being copied.
For more precise copying progress, see the progress field.
Fields
§
progress: FileProgressProgress of the file operation.
CreatingSymbolicLink
Describes a symbolic link being created.
RemovingSourceDirectory
Describes removal of the source directory. This happens at the very end when moving a directory.
Trait Implementations§
Source§impl Clone for DirectoryMoveOperation
impl Clone for DirectoryMoveOperation
Source§fn clone(&self) -> DirectoryMoveOperation
fn clone(&self) -> DirectoryMoveOperation
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 DirectoryMoveOperation
impl Debug for DirectoryMoveOperation
Source§impl PartialEq for DirectoryMoveOperation
impl PartialEq for DirectoryMoveOperation
impl Eq for DirectoryMoveOperation
impl StructuralPartialEq for DirectoryMoveOperation
Auto Trait Implementations§
impl Freeze for DirectoryMoveOperation
impl RefUnwindSafe for DirectoryMoveOperation
impl Send for DirectoryMoveOperation
impl Sync for DirectoryMoveOperation
impl Unpin for DirectoryMoveOperation
impl UnwindSafe for DirectoryMoveOperation
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