pub enum BranchReapOutcome {
Reaped,
NotPresent,
Kept {
count: u64,
tip: String,
},
KeptOnError {
reason: String,
},
DeleteFailed {
reason: String,
},
}Expand description
Outcome of reap_worktree_branch. Kept, KeptOnError and
DeleteFailed each leave a branch behind and the caller warns
differently for each; NotPresent warns about nothing.
Variants§
Reaped
Deleted. No commit became unreachable.
NotPresent
No branch by that name, so nothing to do.
Kept
count commits are reachable from this branch and nothing else, so
deleting it would strand them. tip is the short sha.
KeptOnError
The check could not be completed, so whether the branch holds unique commits is unknown.
DeleteFailed
The check passed and only the delete failed.
Trait Implementations§
Source§impl Debug for BranchReapOutcome
impl Debug for BranchReapOutcome
impl Eq for BranchReapOutcome
Source§impl PartialEq for BranchReapOutcome
impl PartialEq for BranchReapOutcome
impl StructuralPartialEq for BranchReapOutcome
Auto Trait Implementations§
impl Freeze for BranchReapOutcome
impl RefUnwindSafe for BranchReapOutcome
impl Send for BranchReapOutcome
impl Sync for BranchReapOutcome
impl Unpin for BranchReapOutcome
impl UnsafeUnpin for BranchReapOutcome
impl UnwindSafe for BranchReapOutcome
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.