pub enum CleanWorktreeGuard {
Skip,
OnExecutionPath,
OnCallerRepo,
}Expand description
Where the clean-worktree preflight should look before mutating a thread.
Variants§
Skip
--force (or equivalent): skip the clean-worktree check.
OnExecutionPath
Open the isolated execution path (has its own .heddle) and check there.
OnCallerRepo
Check the caller’s repository worktree.
Trait Implementations§
Source§impl Clone for CleanWorktreeGuard
impl Clone for CleanWorktreeGuard
Source§fn clone(&self) -> CleanWorktreeGuard
fn clone(&self) -> CleanWorktreeGuard
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 CleanWorktreeGuard
Source§impl Debug for CleanWorktreeGuard
impl Debug for CleanWorktreeGuard
impl Eq for CleanWorktreeGuard
Source§impl PartialEq for CleanWorktreeGuard
impl PartialEq for CleanWorktreeGuard
impl StructuralPartialEq for CleanWorktreeGuard
Auto Trait Implementations§
impl Freeze for CleanWorktreeGuard
impl RefUnwindSafe for CleanWorktreeGuard
impl Send for CleanWorktreeGuard
impl Sync for CleanWorktreeGuard
impl Unpin for CleanWorktreeGuard
impl UnsafeUnpin for CleanWorktreeGuard
impl UnwindSafe for CleanWorktreeGuard
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