#[non_exhaustive]pub enum FilesystemOp {
EnsureDir(String),
DeleteDir(String),
DeleteFile(String),
MakeDirTree(String),
RemoveAllInExpansion(u16),
}Expand description
Filesystem-level operation that runs before any region writes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EnsureDir(String)
Ensure the directory at this relative path (joined under the install root) exists. Idempotent.
DeleteDir(String)
Remove the empty directory at this relative path.
DeleteFile(String)
Remove the file at this relative path.
MakeDirTree(String)
Create the directory tree at this relative path (equivalent to
fs::create_dir_all).
RemoveAllInExpansion(u16)
Bulk-remove all non-keep-listed files in an expansion folder. The applier owns the keep-list policy; the plan only names the expansion.
Trait Implementations§
Source§impl Clone for FilesystemOp
impl Clone for FilesystemOp
Source§fn clone(&self) -> FilesystemOp
fn clone(&self) -> FilesystemOp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FilesystemOp
impl Debug for FilesystemOp
Source§impl PartialEq for FilesystemOp
impl PartialEq for FilesystemOp
Source§fn eq(&self, other: &FilesystemOp) -> bool
fn eq(&self, other: &FilesystemOp) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FilesystemOp
impl StructuralPartialEq for FilesystemOp
Auto Trait Implementations§
impl Freeze for FilesystemOp
impl RefUnwindSafe for FilesystemOp
impl Send for FilesystemOp
impl Sync for FilesystemOp
impl Unpin for FilesystemOp
impl UnsafeUnpin for FilesystemOp
impl UnwindSafe for FilesystemOp
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