pub enum CleanupResult {
Worktrees {
project_name: String,
worktrees_removed: usize,
sessions_removed: usize,
bytes_freed: u64,
skipped_count: usize,
error_count: usize,
},
Orphaned {
project_name: String,
sessions_removed: usize,
bytes_freed: u64,
error_count: usize,
},
RemoveProject {
project_name: String,
worktrees_removed: usize,
config_deleted: bool,
bytes_freed: u64,
skipped_count: usize,
error_count: usize,
},
Data {
project_name: String,
specs_removed: usize,
runs_removed: usize,
bytes_freed: u64,
error_count: usize,
},
}Expand description
Result of a cleanup operation to display in a modal.
US-007: After clean or remove operations complete, show a result summary modal. This enum stores the summary data from the cleanup operation so it can be displayed in a modal after the operation completes.
Variants§
Worktrees
Result from a worktree cleanup operation.
Fields
Orphaned
Result from an orphaned session cleanup operation.
RemoveProject
Result from a project removal operation.
Fields
Data
Result from a data cleanup operation (specs and archived runs).
Implementations§
Trait Implementations§
Source§impl Clone for CleanupResult
impl Clone for CleanupResult
Source§fn clone(&self) -> CleanupResult
fn clone(&self) -> CleanupResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CleanupResult
impl RefUnwindSafe for CleanupResult
impl Send for CleanupResult
impl Sync for CleanupResult
impl Unpin for CleanupResult
impl UnwindSafe for CleanupResult
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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