pub enum Op {
Copy {
src: String,
dst: String,
},
Move {
src: String,
dst: String,
},
Delete {
path: String,
recursive: bool,
},
Chmod {
path: String,
permissions: Permissions,
recursive: bool,
},
Symlink {
link_path: String,
target: String,
},
Write {
path: String,
content: Vec<u8>,
},
MakeExecutable {
path: String,
},
}Expand description
A staged filesystem operation.
Variants§
Copy
Copy file or directory
Move
Move/rename file or directory
Delete
Delete file or directory
Chmod
Change permissions
Fields
§
permissions: PermissionsNew permissions
Symlink
Create symlink
Fields
Write
Write file content
MakeExecutable
Make file executable
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Op
impl RefUnwindSafe for Op
impl Send for Op
impl Sync for Op
impl Unpin for Op
impl UnwindSafe for Op
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)