pub enum TargetDirCreateIntent {
AttemptCreate,
AdoptOnly,
}Expand description
Plan-time intent for the create-target-dir step (before FS create/adopt).
Derived solely from plan_worktree_target’s target_dir_created bool; the
runtime claim may still land as AdoptedEmpty if a concurrent create races
the transaction (CreateDirAttempt::AlreadyExists).
Variants§
AttemptCreate
Leaf was absent at plan time — attempt create_dir, adopt on race.
AdoptOnly
Leaf was a pre-existing empty dir — adopt only, never create/remove.
Trait Implementations§
Source§impl Clone for TargetDirCreateIntent
impl Clone for TargetDirCreateIntent
Source§fn clone(&self) -> TargetDirCreateIntent
fn clone(&self) -> TargetDirCreateIntent
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 moreimpl Copy for TargetDirCreateIntent
Source§impl Debug for TargetDirCreateIntent
impl Debug for TargetDirCreateIntent
impl Eq for TargetDirCreateIntent
Source§impl PartialEq for TargetDirCreateIntent
impl PartialEq for TargetDirCreateIntent
impl StructuralPartialEq for TargetDirCreateIntent
Auto Trait Implementations§
impl Freeze for TargetDirCreateIntent
impl RefUnwindSafe for TargetDirCreateIntent
impl Send for TargetDirCreateIntent
impl Sync for TargetDirCreateIntent
impl Unpin for TargetDirCreateIntent
impl UnsafeUnpin for TargetDirCreateIntent
impl UnwindSafe for TargetDirCreateIntent
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