#[non_exhaustive]pub enum WorktreePathOperation {
Read,
Replace,
Remove,
Create,
Metadata,
}Expand description
Worktree filesystem operation that failed on a single path.
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.
Read
Reading file bytes or a symlink target.
Replace
Replacing an existing file (checkout, hard reset, apply).
Remove
Removing a file or symlink before rewrite.
Create
Creating a new path (file or symlink).
Metadata
stat / metadata probe without opening for read.
Trait Implementations§
Source§impl Clone for WorktreePathOperation
impl Clone for WorktreePathOperation
impl Copy for WorktreePathOperation
Source§impl Debug for WorktreePathOperation
impl Debug for WorktreePathOperation
impl Eq for WorktreePathOperation
Source§impl Hash for WorktreePathOperation
impl Hash for WorktreePathOperation
Source§impl PartialEq for WorktreePathOperation
impl PartialEq for WorktreePathOperation
impl StructuralPartialEq for WorktreePathOperation
Auto Trait Implementations§
impl Freeze for WorktreePathOperation
impl RefUnwindSafe for WorktreePathOperation
impl Send for WorktreePathOperation
impl Sync for WorktreePathOperation
impl Unpin for WorktreePathOperation
impl UnsafeUnpin for WorktreePathOperation
impl UnwindSafe for WorktreePathOperation
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