pub struct CopyOptions {
pub overwrite: bool,
pub skip_exist: bool,
pub buffer_size: usize,
}
Fields§
§overwrite: bool
Sets the option true for overwrite existing files.
skip_exist: bool
Sets the option true for skip existing files.
buffer_size: usize
Sets buffer size for copy/move work only with receipt information about process work.
Implementations§
Source§impl CopyOptions
impl CopyOptions
Sourcepub fn new() -> CopyOptions
pub fn new() -> CopyOptions
Initialize struct CopyOptions with default value.
ⓘ
overwrite: false
skip_exist: false
buffer_size: 64000 //64kb
Sourcepub fn overwrite(self, overwrite: bool) -> Self
pub fn overwrite(self, overwrite: bool) -> Self
Sets the option true for overwrite existing files.
Sourcepub fn skip_exist(self, skip_exist: bool) -> Self
pub fn skip_exist(self, skip_exist: bool) -> Self
Sets the option true for skip existing files.
Sourcepub fn buffer_size(self, buffer_size: usize) -> Self
pub fn buffer_size(self, buffer_size: usize) -> Self
Sets buffer size for copy/move work only with receipt information about process work.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CopyOptions
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnwindSafe for CopyOptions
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