pub enum StepOutcome {
Line(Line),
AwaitingExternal,
}Expand description
Outcome of a single FlowInstance::advance step.
Like Line, but with an extra variant for when a binding handler
deferred an external call (ExternalResult::Pending) — e.g. a
world-access query hit during normal playback. The flow is paused with
its state intact: inspect the pending call via
pending_external_name /
pending_external_args, supply
the result with resolve_external,
then call advance again.
step_single_line is the simpler API
for consumers whose handler never pauses — it maps AwaitingExternal
to an error.
Variants§
Line(Line)
A line of output, or a yield point (Done/Choices/End).
AwaitingExternal
The flow paused on a deferred external; resolve it and advance.
Trait Implementations§
Source§impl Clone for StepOutcome
impl Clone for StepOutcome
Source§fn clone(&self) -> StepOutcome
fn clone(&self) -> StepOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StepOutcome
impl RefUnwindSafe for StepOutcome
impl Send for StepOutcome
impl Sync for StepOutcome
impl Unpin for StepOutcome
impl UnsafeUnpin for StepOutcome
impl UnwindSafe for StepOutcome
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