pub enum Found {
Claim(Hit),
Pricing(PathBuf),
Priced(Priced),
}Expand description
What a walk reports, as it happens.
Two events rather than one, because a claim and its price are found at different times and
waiting for the second would throw away the first. See Walker::run.
Variants§
Claim(Hit)
A directory was claimed. Published the moment the claim is judged, whatever the size mode: nothing here ever waits for a measurement.
Pricing(PathBuf)
A pricing thread has gone into this claim and has not come back yet.
The pool is bounded, so the number of these outstanding at any instant is the number
of threads in it — which is what makes it worth reporting at all. A live view can show
exactly which of its dashes are being worked on now, where before it could only show
that some of them would be worked on eventually. Followed by exactly one
Found::Priced for the same path, whatever the measurement turns out to be.
A consumer that only wants totals ignores it, as the command line does.
Priced(Priced)
A claim that was published without a size now has one.
Arrives after the Found::Claim it belongs to — always, because the claim is
published before the pricing pool is even told about it — and on a different thread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Found
impl RefUnwindSafe for Found
impl Send for Found
impl Sync for Found
impl Unpin for Found
impl UnsafeUnpin for Found
impl UnwindSafe for Found
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