pub struct FallbackReport {
pub enabled: bool,
pub min_size: u64,
pub work_trees: usize,
pub outside_work_tree: usize,
pub holding_a_checkout: usize,
pub hits: usize,
pub files_enabled: bool,
pub files: usize,
}Expand description
What tier two was able to do, reported alongside what it found.
Inertness is a result, not an absence of one. A user who scanned a directory that is not in a git work tree has to be able to tell “there was nothing reclaimable here” from “this tier had nothing to work with”, and the two look identical without this.
Fields§
§enabled: boolWhether tier two ran at all.
min_size: u64The floor a directory had to clear, in bytes.
work_trees: usizeGit work trees whose ignore stack and index tier two consulted.
outside_work_tree: usizeDirectories tier two passed over because they lie outside any git work tree.
holding_a_checkout: usizeDirectories tier two would otherwise have claimed, but which hold a git checkout. Worth surfacing: this is where the reclaimable bytes a scan declined to offer went.
hits: usizeDirectories tier two claimed.
files_enabled: boolWhether tier two was asked to claim gitignored files as well as directories.
Reported rather than inferred from files being zero, on this report’s founding rule:
“there were none” and “nobody looked” are different facts and they look identical
without something that says which.
files: usizeGitignored files tier two claimed, which are a subset of hits.
Implementations§
Trait Implementations§
Source§impl Clone for FallbackReport
impl Clone for FallbackReport
Source§fn clone(&self) -> FallbackReport
fn clone(&self) -> FallbackReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FallbackReport
impl Debug for FallbackReport
Source§impl Default for FallbackReport
impl Default for FallbackReport
Source§fn default() -> FallbackReport
fn default() -> FallbackReport
Auto Trait Implementations§
impl Freeze for FallbackReport
impl RefUnwindSafe for FallbackReport
impl Send for FallbackReport
impl Sync for FallbackReport
impl Unpin for FallbackReport
impl UnsafeUnpin for FallbackReport
impl UnwindSafe for FallbackReport
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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