pub struct Survey {
pub size: Size,
pub nested_repo: Option<PathBuf>,
pub unreadable: Vec<PathBuf>,
pub not_crossed: Vec<PathBuf>,
}Expand description
Everything one pass over a tier-two candidate found.
Fields§
§size: SizeThe total. Size::Unmeasured only when the survey gave up early, which it does only
once nested_repo is set and the candidate is dead anyway.
nested_repo: Option<PathBuf>A git repository living inside the candidate, if there is one. Its presence is what stops the directory above it being removed wholesale.
unreadable: Vec<PathBuf>Entries that could not be read. Not merely a caveat on the total here: a survey that
could not see all of the subtree has not established nested_repo either, so the
caller has no grounds to claim the directory at all.
not_crossed: Vec<PathBuf>Subtrees on another filesystem, which the survey does not enter.
Reported for the same reason as unreadable and not silently skipped, which is what an
earlier version did. A mount point inside a candidate hides everything under it,
including a checkout — so “holds no repository”, which is a claim about the whole
subtree, is not established when one is present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Survey
impl RefUnwindSafe for Survey
impl Send for Survey
impl Sync for Survey
impl Unpin for Survey
impl UnsafeUnpin for Survey
impl UnwindSafe for Survey
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