pub enum Status {
Deleting(u8),
Pricing(u8),
Scanning(u64),
Freed(u64),
Idle(u64),
}Expand description
What the tab bar and the taskbar say about a run, at one moment.
A ladder rather than a set of flags: at any moment exactly one of these is the thing a reader who is elsewhere wants to know, and the order is what makes that true.
Variants§
Deleting(u8)
A removal is running, and this much of its batch is behind it.
The one bar here with a denominator that does not move. The batch’s size is fixed when the reader answers the confirmation, where the pricing bar below counts against a total the walk is still adding to — so this is the fraction a reader who has left the terminal can actually plan around, and a running byte total on its own cannot say whether a long delete is a third of the way through or nearly done.
Pricing(u8)
The pricing pool is behind the walk, by this percentage.
Scanning(u64)
Walking, with nothing outstanding to price.
Freed(u64)
Nothing running, and a removal has happened this session.
Idle(u64)
Nothing running.
Implementations§
Source§impl Status
impl Status
Sourcepub fn of(view: &View, freed: u64) -> Self
pub fn of(view: &View, freed: u64) -> Self
What the view is showing, said in one line.
The percentage’s denominator grows, because a claim is published the moment it is judged and priced later, so the figure can go down as the walk finds faster than the pool prices. That is honest rather than tidy: the alternative is a denominator that is only known when the walk finishes, which is 7.5 s into a 63 s run — a bar that appears once it has stopped being needed.
Trait Implementations§
impl Copy for Status
impl Eq for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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