pub struct GcPlan {
pub removable: Vec<PathBuf>,
pub removable_bytes: u64,
pub kept_orphans: Vec<(String, usize)>,
pub symlinks: Vec<PathBuf>,
pub scanned: usize,
}Expand description
What lean-ctx knowledge gc found under the knowledge directory.
Only GcPlan::removable is ever removed, and only by an explicit
--apply: directories that hold no data at all. A store that holds
anything (facts, patterns, history, judged pairs, any field this build
does not know) is never removed here; when its project is gone it is
listed in GcPlan::kept_orphans.
Fields§
§removable: Vec<PathBuf>Store directories that hold no data: an empty store whose project is gone, or a directory with no store file at all (only the lock file, or nothing) untouched for a day. Sorted.
removable_bytes: u64§kept_orphans: Vec<(String, usize)>Orphaned stores that still hold data: (project root, facts).
symlinks: Vec<PathBuf>Entries of the knowledge directory that are symbolic links: never followed, never removed, reported.
scanned: usizeStore directories looked at.
Trait Implementations§
Auto Trait Implementations§
impl Forget for GcPlan
impl Freeze for GcPlan
impl Move for GcPlan
impl RefUnwindSafe for GcPlan
impl Send for GcPlan
impl Sync for GcPlan
impl Unpin for GcPlan
impl UnsafeUnpin for GcPlan
impl UnwindSafe for GcPlan
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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