pub enum Progress {
Send(HttpRequest),
Wait(Duration),
Done(Box<ExecutionReport>),
}Expand description
What the engine wants next.
Deliberately not #[non_exhaustive]: a driving loop must handle
every variant, and a new one would have to break that loop to mean
anything — so a catch-all arm would hide the very change it was
there to absorb.
Variants§
Send(HttpRequest)
Perform this request, then hand the response to
Run::supply.
Wait(Duration)
Wait this long — a retry asked for it — then carry on.
Done(Box<ExecutionReport>)
The run is over.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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