pub struct DirectoryCopyWithProgressOptions {
pub destination_directory_rule: DestinationDirectoryRule,
pub copy_depth_limit: DirectoryCopyDepthLimit,
pub symlink_behaviour: SymlinkBehaviour,
pub broken_symlink_behaviour: BrokenSymlinkBehaviour,
pub read_buffer_size: usize,
pub write_buffer_size: usize,
pub progress_update_byte_interval: u64,
}Expand description
Options that influence the copy_directory_with_progress function.
Fields§
§destination_directory_rule: DestinationDirectoryRuleSpecifies whether you allow the destination directory to exist before copying, and whether you require it to be empty. If you allow a non-empty destination directory, you may also specify how to handle existing destination files and sub-directories.
See DestinationDirectoryRule documentation for more details and examples.
copy_depth_limit: DirectoryCopyDepthLimitMaximum depth of the source directory to copy.
symlink_behaviour: SymlinkBehaviourSets the behaviour for symbolic links when copying a directory.
broken_symlink_behaviour: BrokenSymlinkBehaviourSets the behaviour for broken symbolic links when copying a directory.
read_buffer_size: usizeInternal buffer size used for reading from source files.
Defaults to 64 KiB.
write_buffer_size: usizeInternal buffer size used for writing to destination files.
Defaults to 64 KiB.
progress_update_byte_interval: u64Minimum number of bytes written between two consecutive progress reports.
Defaults to 512 KiB.
Note that the real reporting interval can be larger
(see copy_directory_with_progress for more info).
Trait Implementations§
Source§impl Clone for DirectoryCopyWithProgressOptions
impl Clone for DirectoryCopyWithProgressOptions
Source§fn clone(&self) -> DirectoryCopyWithProgressOptions
fn clone(&self) -> DirectoryCopyWithProgressOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for DirectoryCopyWithProgressOptions
impl Default for DirectoryCopyWithProgressOptions
Source§fn default() -> Self
fn default() -> Self
Constructs defaults for copying a directory, which are:
DestinationDirectoryRule::AllowEmpty: if the destination directory already exists, it must be empty,DirectoryCopyDepthLimit::Unlimited: there is no copy depth limit,SymlinkBehaviour::Keep: symbolic links are not followed,BrokenSymlinkBehaviour::Keep: broken symbolic links are kept as-is, i.e. broken,- the read and write buffers are 64 KiB large, and
- the progress reporting closure byte interval is set to 512 KiB.
Source§impl PartialEq for DirectoryCopyWithProgressOptions
impl PartialEq for DirectoryCopyWithProgressOptions
Source§fn eq(&self, other: &DirectoryCopyWithProgressOptions) -> bool
fn eq(&self, other: &DirectoryCopyWithProgressOptions) -> bool
self and other values to be equal, and is used by ==.