pub enum CloseOutcome {
Closed(CloseResult),
VerifyFailed(VerifyFailureResult),
RejectedByHook {
unit_id: String,
},
FeatureRequiresHuman {
unit_id: String,
title: String,
warnings: Vec<CloseWarning>,
},
CircuitBreakerTripped {
unit_id: String,
total_attempts: u32,
max: u32,
warnings: Vec<CloseWarning>,
},
MergeConflict {
files: Vec<String>,
warnings: Vec<CloseWarning>,
},
DeferredVerify {
unit_id: String,
},
}Expand description
Outcome of attempting to close a single unit.
Variants§
Closed(CloseResult)
The unit was closed and archived.
VerifyFailed(VerifyFailureResult)
The verify command failed.
RejectedByHook
The pre-close hook rejected the close.
FeatureRequiresHuman
Feature unit requires interactive TTY confirmation.
CircuitBreakerTripped
Circuit breaker tripped — too many attempts across the subtree.
MergeConflict
Worktree merge had conflicts — unit stays open.
DeferredVerify
Verify was deferred — unit is now AwaitingVerify.
Emitted when CloseOpts::defer_verify is true. The runner is expected to
run verify later and transition the unit to Closed or back to Open.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloseOutcome
impl RefUnwindSafe for CloseOutcome
impl Send for CloseOutcome
impl Sync for CloseOutcome
impl Unpin for CloseOutcome
impl UnsafeUnpin for CloseOutcome
impl UnwindSafe for CloseOutcome
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more