pub struct WalkOutcome {
pub hits: usize,
pub reclaimable_bytes: u64,
pub unmeasured: usize,
pub fallback: FallbackReport,
pub errors: Vec<WalkError>,
pub excluded: usize,
}Expand description
What a walk found.
Fields§
§hits: usizeHow many directories were claimed, across both tiers.
reclaimable_bytes: u64The total size of the claims that were measured. Zero on a default scan, which
measures nothing — read it alongside unmeasured rather than on its own.
unmeasured: usizeHow many claims were recorded without being measured, because the scan pruned there.
fallback: FallbackReportWhat tier two managed. Read it: a scan of a directory outside any git work tree finds nothing through this tier and cannot, and the report is what tells the two apart.
errors: Vec<WalkError>Everything that could not be read.
excluded: usizeHow many paths were skipped because the reader excluded them.
Counted and reported rather than silently obeyed: a total that is missing a subtree has
to say so, and “you told me not to look” is a different sentence from “I could not
look” — see Walker::excludes.
Trait Implementations§
Source§impl Debug for WalkOutcome
impl Debug for WalkOutcome
Source§impl Default for WalkOutcome
impl Default for WalkOutcome
Source§fn default() -> WalkOutcome
fn default() -> WalkOutcome
Auto Trait Implementations§
impl Freeze for WalkOutcome
impl RefUnwindSafe for WalkOutcome
impl Send for WalkOutcome
impl Sync for WalkOutcome
impl Unpin for WalkOutcome
impl UnsafeUnpin for WalkOutcome
impl UnwindSafe for WalkOutcome
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
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> ⓘ
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> ⓘ
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