pub struct Outcome {
pub errors: Vec<WalkError>,
pub failures: usize,
pub freed: u64,
}Expand description
What the run turns out to have been, for the exit status.
A live view says everything it knows on the screen — an unreadable path in the header, a
failed removal in the footer — and none of that reaches a script. The listing’s rule is
that a run which could not do everything it was asked exits non-zero, and there is no
reason for the tree to be the exception: the same person pipes the same tool into the same
&& the next day.
Fields§
§errors: Vec<WalkError>Paths the walk could not read, so every total is a lower bound. The header says so.
failures: usizeTargets a removal could not finish. Not the ones it refused: a refusal is the
safety model working, which is exactly the distinction Removal::is_clean draws.
freed: u64What the session actually got back, across every batch it ran.
Not part of the exit status — a run that freed nothing is a perfectly whole run — but
it is the number the reader who walked away came back for, so it is what the window
title says once there is one. See Status::Freed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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