pub enum RestoreAction {
Noop,
FileRename {
backup: PathBuf,
mode: Option<u32>,
},
SymlinkTo {
dest: PathBuf,
cleanup_backup: Option<PathBuf>,
},
EnsureAbsent {
cleanup_backup: Option<PathBuf>,
},
LegacyRename {
backup: PathBuf,
},
}
Expand description
Planned action for restore execution.
Variants§
Trait Implementations§
Source§impl Clone for RestoreAction
impl Clone for RestoreAction
Source§fn clone(&self) -> RestoreAction
fn clone(&self) -> RestoreAction
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 moreAuto Trait Implementations§
impl Freeze for RestoreAction
impl RefUnwindSafe for RestoreAction
impl Send for RestoreAction
impl Sync for RestoreAction
impl Unpin for RestoreAction
impl UnwindSafe for RestoreAction
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