Struct fs_extra::file::CopyOptions[][src]

pub struct CopyOptions {
    pub overwrite: bool,
    pub skip_exist: bool,
    pub buffer_size: usize,
}

Options and flags which can be used to configure how a file will be copied or moved.

Fields

overwrite: bool

Sets the option true for overwrite existing files.

skip_exist: bool

Sets the option true for skipe existing files.

buffer_size: usize

Sets buffer size for copy/move work only with receipt information about process work.

Implementations

impl CopyOptions[src]

pub fn new() -> CopyOptions[src]

Initialize struct CopyOptions with default value.


overwrite: false

skip_exist: false

buffer_size: 64000 //64kb

Trait Implementations

impl Default for CopyOptions[src]

Auto Trait Implementations

impl RefUnwindSafe for CopyOptions

impl Send for CopyOptions

impl Sync for CopyOptions

impl Unpin for CopyOptions

impl UnwindSafe for CopyOptions

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.