pub enum ConflictPolicy {
Abort,
Number,
Skip,
Merge,
}Expand description
Conflict resolution policy when a rename target already exists or two plans target the same path.
Currently only ConflictPolicy::Abort is functional; the other
variants are reserved for future expansion and are accepted by the
type but not yet implemented in the planner/executor.
Variants§
Abort
Stop the batch on conflict. No I/O is performed when a conflict is detected at planning time.
Number
Append the user separator + an integer to the target name until a free name is found.
Skip
Skip just the conflicting plan; continue the batch.
Merge
For directory-vs-directory conflicts, recursively merge contents
(file conflicts inside fall back to Number). For file-vs-file
conflicts, behaves like Abort.
Trait Implementations§
Source§impl Clone for ConflictPolicy
impl Clone for ConflictPolicy
Source§fn clone(&self) -> ConflictPolicy
fn clone(&self) -> ConflictPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConflictPolicy
impl Debug for ConflictPolicy
Source§impl Default for ConflictPolicy
impl Default for ConflictPolicy
Source§fn default() -> ConflictPolicy
fn default() -> ConflictPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ConflictPolicy
impl PartialEq for ConflictPolicy
Source§fn eq(&self, other: &ConflictPolicy) -> bool
fn eq(&self, other: &ConflictPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConflictPolicy
impl Eq for ConflictPolicy
impl StructuralPartialEq for ConflictPolicy
Auto Trait Implementations§
impl Freeze for ConflictPolicy
impl RefUnwindSafe for ConflictPolicy
impl Send for ConflictPolicy
impl Sync for ConflictPolicy
impl Unpin for ConflictPolicy
impl UnsafeUnpin for ConflictPolicy
impl UnwindSafe for ConflictPolicy
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