pub struct CleanOutcome {
pub removed: usize,
pub skipped: usize,
pub errored: usize,
pub warnings: Vec<String>,
}Expand description
Outcome of a WorktreeManager::clean pass.
Every stale entry reconcile() discovers is accounted for in exactly one of
removed, skipped, or errored — the three always sum to the number of stale
entries processed, so a caller can never silently undercount what happened.
Fields§
§removed: usizeNumber of stale entries successfully removed.
skipped: usizeNumber of stale entries left in place because they were not prunable and
force was not passed.
errored: usizeNumber of stale entries whose removal was attempted but the underlying
git worktree remove call itself failed (e.g. a locked worktree).
warnings: Vec<String>One warning line per skipped, errored, or prune-failure event, in encounter order.
Trait Implementations§
Source§impl Clone for CleanOutcome
impl Clone for CleanOutcome
Source§fn clone(&self) -> CleanOutcome
fn clone(&self) -> CleanOutcome
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 moreSource§impl Debug for CleanOutcome
impl Debug for CleanOutcome
Source§impl Default for CleanOutcome
impl Default for CleanOutcome
Source§fn default() -> CleanOutcome
fn default() -> CleanOutcome
Returns the “default value” for a type. Read more
impl Eq for CleanOutcome
Source§impl PartialEq for CleanOutcome
impl PartialEq for CleanOutcome
impl StructuralPartialEq for CleanOutcome
Auto Trait Implementations§
impl Freeze for CleanOutcome
impl RefUnwindSafe for CleanOutcome
impl Send for CleanOutcome
impl Sync for CleanOutcome
impl Unpin for CleanOutcome
impl UnsafeUnpin for CleanOutcome
impl UnwindSafe for CleanOutcome
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.