pub enum FileAction {
ApplyRemote {
path: String,
remote_hash: [u8; 16],
},
DeleteLocal {
path: String,
},
Conflict(Conflict),
}Expand description
An action to take for a given file after three-point comparison.
Variants§
ApplyRemote
Pull the remote version of this file locally.
DeleteLocal
Delete the local copy (remote deleted it, local was unchanged).
Conflict(Conflict)
Both sides changed in incompatible ways; needs manual resolution.
Trait Implementations§
Source§impl Clone for FileAction
impl Clone for FileAction
Source§fn clone(&self) -> FileAction
fn clone(&self) -> FileAction
Returns a duplicate 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 FileAction
impl Debug for FileAction
Source§impl PartialEq for FileAction
impl PartialEq for FileAction
impl StructuralPartialEq for FileAction
Auto Trait Implementations§
impl Freeze for FileAction
impl RefUnwindSafe for FileAction
impl Send for FileAction
impl Sync for FileAction
impl Unpin for FileAction
impl UnsafeUnpin for FileAction
impl UnwindSafe for FileAction
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