pub struct Conflict {
pub source: PathBuf,
pub destination: PathBuf,
pub kind: ConflictKind,
}Expand description
A conflict detected during a file operation.
Fields§
§source: PathBufThe source path being operated on.
destination: PathBufThe destination path where the conflict exists.
kind: ConflictKindThe kind of conflict.
Implementations§
Source§impl Conflict
impl Conflict
Sourcepub fn new(source: PathBuf, destination: PathBuf, kind: ConflictKind) -> Self
pub fn new(source: PathBuf, destination: PathBuf, kind: ConflictKind) -> Self
Create a new conflict.
Sourcepub fn file_exists(source: PathBuf, destination: PathBuf) -> Self
pub fn file_exists(source: PathBuf, destination: PathBuf) -> Self
Create a file exists conflict.
Sourcepub fn directory_exists(source: PathBuf, destination: PathBuf) -> Self
pub fn directory_exists(source: PathBuf, destination: PathBuf) -> Self
Create a directory exists conflict.
Sourcepub fn source_is_ancestor(source: PathBuf, destination: PathBuf) -> Self
pub fn source_is_ancestor(source: PathBuf, destination: PathBuf) -> Self
Create a source is ancestor conflict.
Sourcepub fn permission_denied(source: PathBuf, destination: PathBuf) -> Self
pub fn permission_denied(source: PathBuf, destination: PathBuf) -> Self
Create a permission denied conflict.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Conflict
impl RefUnwindSafe for Conflict
impl Send for Conflict
impl Sync for Conflict
impl Unpin for Conflict
impl UnsafeUnpin for Conflict
impl UnwindSafe for Conflict
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