pub enum Event<'a> {
Started {
id: &'a str,
done: usize,
total: usize,
},
Finished {
result: &'a ProbeResult,
done: usize,
total: usize,
},
}Expand description
What the caller is told as the run proceeds.
Both variants carry the running total so a progress bar can be drawn without
the caller tracking state. total is an upper bound — several steps skip
parts of themselves when the endpoint does not offer what they need — so a
run legitimately finishes below it.
Variants§
Started
A step is about to issue its requests. This is the one a UI wants: the gap before a slow step’s first result is where a progress display otherwise looks frozen.
Finished
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
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
Mutably borrows from an owned value. Read more