pub enum CollidingFileBehaviour {
Abort,
Skip,
Overwrite,
}Expand description
Controls behaviour for existing files on the destination side that collide with the one we’re trying to copy or move there.
See also: FileCopyOptions and FileMoveOptions.
Variants§
Abort
Ensures that an error will be returned from the corresponding function when the destination file already exists.
Skip
Ensures that an existing destination file will not be overwritten by the corresponding copy or move operation.
However, the function will skip the file silently; no error will be returned.
Overwrite
Ensures that an existing destination file can be overwritten by the corresponding copying or moving function.
Trait Implementations§
Source§impl Clone for CollidingFileBehaviour
impl Clone for CollidingFileBehaviour
Source§fn clone(&self) -> CollidingFileBehaviour
fn clone(&self) -> CollidingFileBehaviour
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 CollidingFileBehaviour
impl Debug for CollidingFileBehaviour
Source§impl PartialEq for CollidingFileBehaviour
impl PartialEq for CollidingFileBehaviour
impl Copy for CollidingFileBehaviour
impl Eq for CollidingFileBehaviour
impl StructuralPartialEq for CollidingFileBehaviour
Auto Trait Implementations§
impl Freeze for CollidingFileBehaviour
impl RefUnwindSafe for CollidingFileBehaviour
impl Send for CollidingFileBehaviour
impl Sync for CollidingFileBehaviour
impl Unpin for CollidingFileBehaviour
impl UnwindSafe for CollidingFileBehaviour
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