pub struct FileMoveWithProgressOptions {
pub colliding_file_behaviour: CollidingFileBehaviour,
pub read_buffer_size: usize,
pub write_buffer_size: usize,
pub progress_update_byte_interval: u64,
}Expand description
Options that influence the move_file_with_progress function.
Fields§
§colliding_file_behaviour: CollidingFileBehaviourHow to behave when the destination file already exists.
read_buffer_size: usizeInternal buffer size used for reading the source file.
Defaults to 64 KiB.
write_buffer_size: usizeInternal buffer size used for writing to the destination file.
Defaults to 64 KiB.
progress_update_byte_interval: u64The smallest number of bytes to be copied between two consecutive progress reports.
Increase this value to make progress reports less frequent, and decrease it to make them more frequent.
Note that this is the minimum; the real reporting interval can be larger.
Consult copy_file_with_progress documentation for more details.
Defaults to 512 KiB.
Trait Implementations§
Source§impl Clone for FileMoveWithProgressOptions
impl Clone for FileMoveWithProgressOptions
Source§fn clone(&self) -> FileMoveWithProgressOptions
fn clone(&self) -> FileMoveWithProgressOptions
Returns a copy 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 FileMoveWithProgressOptions
impl Debug for FileMoveWithProgressOptions
Source§impl Default for FileMoveWithProgressOptions
impl Default for FileMoveWithProgressOptions
Source§fn default() -> Self
fn default() -> Self
Constructs a default FileMoveOptions:
- existing destination files will not be overwritten, and will cause an error (
CollidingFileBehaviour::Abort), - read and write buffers with be 64 KiB large,
- the progress report closure interval will be 512 KiB.
impl Copy for FileMoveWithProgressOptions
impl Eq for FileMoveWithProgressOptions
impl StructuralPartialEq for FileMoveWithProgressOptions
Auto Trait Implementations§
impl Freeze for FileMoveWithProgressOptions
impl RefUnwindSafe for FileMoveWithProgressOptions
impl Send for FileMoveWithProgressOptions
impl Sync for FileMoveWithProgressOptions
impl Unpin for FileMoveWithProgressOptions
impl UnwindSafe for FileMoveWithProgressOptions
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