pub enum CleanClass {
Stale,
CompleteKeepByDefault,
Keep,
}Expand description
How a mission directory classifies for kranz clean. The decision is a
pure function of the folded status and whether a plan.json exists, so it
is trivially testable in isolation from the filesystem walk.
Variants§
Stale
Retire by default (kranz clean): the mission failed, was abandoned, or
is an abandoned-in-planning husk (still Planning with no plan.json).
CompleteKeepByDefault
Only removed with --all: a Complete mission whose branch/report may
still be under review.
Keep
Never cleaned: the mission is live (Planning-with-plan, Running, Paused, Blocked, Validating).
Implementations§
Source§impl CleanClass
impl CleanClass
Sourcepub fn is_cleaned(self, all: bool) -> bool
pub fn is_cleaned(self, all: bool) -> bool
Whether this class is removed given the --all opt-in.
Trait Implementations§
Source§impl Clone for CleanClass
impl Clone for CleanClass
Source§fn clone(&self) -> CleanClass
fn clone(&self) -> CleanClass
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 CleanClass
Source§impl Debug for CleanClass
impl Debug for CleanClass
impl Eq for CleanClass
Source§impl PartialEq for CleanClass
impl PartialEq for CleanClass
impl StructuralPartialEq for CleanClass
Auto Trait Implementations§
impl Freeze for CleanClass
impl RefUnwindSafe for CleanClass
impl Send for CleanClass
impl Sync for CleanClass
impl Unpin for CleanClass
impl UnsafeUnpin for CleanClass
impl UnwindSafe for CleanClass
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