pub enum Operation {
Copy {
src: PathBuf,
dest: PathBuf,
},
Move {
src: PathBuf,
dest: PathBuf,
},
Rename {
src: PathBuf,
dest: PathBuf,
},
Delete {
path: PathBuf,
},
CreateDir {
path: PathBuf,
},
CreateFile {
path: PathBuf,
},
CreateSymlink {
source: PathBuf,
link: PathBuf,
},
ExtractArchive {
archive: PathBuf,
dest_dir: PathBuf,
},
CreateArchive {
sources: Vec<PathBuf>,
base_dir: PathBuf,
archive: PathBuf,
},
}Variants§
Copy
Move
Rename
Delete
CreateDir
CreateFile
CreateSymlink
ExtractArchive
CreateArchive
Pack sources (and everything under them) into a new archive, with
entry names relative to base_dir.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Operation
impl Freeze for Operation
impl Move for Operation
impl RefUnwindSafe for Operation
impl Send for Operationwhere
RawVecInner: Send,
impl Sync for Operationwhere
RawVecInner: Sync,
impl Unpin for Operation
impl UnsafeUnpin for Operationwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
impl UnwindSafe for Operationwhere
RawVecInner: UnwindSafe,
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