pub enum MoveMode {
Rename,
HardLinkThenRemove,
}Expand description
How a quarantined file leaves its original path.
Variants§
Rename
rename(2): one step, within the directory (default).
HardLinkThenRemove
Hard-link the file to its destination, then remove the original, so the destination exists before the original name goes away. Fails, with the original still in place, where hard links are not supported.
Trait Implementations§
impl Copy for MoveMode
impl Eq for MoveMode
impl StructuralPartialEq for MoveMode
Auto Trait Implementations§
impl Freeze for MoveMode
impl RefUnwindSafe for MoveMode
impl Send for MoveMode
impl Sync for MoveMode
impl Unpin for MoveMode
impl UnsafeUnpin for MoveMode
impl UnwindSafe for MoveMode
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