pub enum SpeculationStep {
Line(Line),
AwaitingExternal,
}Expand description
Outcome of a single Speculation::advance call.
Mirrors StepOutcome, the FlowInstance::advance equivalent: a
Line (including a terminal Done/Choices/End variant), or a
cleanly-surfaced pending external for the caller to resolve (see
Speculation::resolve_external) before calling advance again. A
budget-exhausted call is an Err, not a variant here — see
RuntimeError::StepLimitExceeded/RuntimeError::LineLimitExceeded.
Variants§
Line(Line)
A line of output, or a yield point (Done/Choices/End).
AwaitingExternal
The speculation paused on a deferred external; resolve it and
advance again.
Trait Implementations§
Source§impl Clone for SpeculationStep
impl Clone for SpeculationStep
Source§fn clone(&self) -> SpeculationStep
fn clone(&self) -> SpeculationStep
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 SpeculationStep
impl RefUnwindSafe for SpeculationStep
impl Send for SpeculationStep
impl Sync for SpeculationStep
impl Unpin for SpeculationStep
impl UnsafeUnpin for SpeculationStep
impl UnwindSafe for SpeculationStep
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