pub enum FunctionEval {
Returned(Value),
AwaitingExternal,
}Expand description
Outcome of an engine→ink function evaluation
(FlowInstance::begin_function_eval / resume_function_eval).
Evaluating an ink function from engine code does not advance the player-visible story: its output is isolated and discarded, and the transcript is untouched. The only result is the function’s return value — unless the function calls an external that can’t be resolved synchronously.
Variants§
Returned(Value)
The function returned this value and evaluation is complete.
(Functions with no explicit ~ return yield Value::Null.)
AwaitingExternal
The function called an external whose handler returned
ExternalResult::Pending — typically a binding that needs
engine/World access resolved out-of-band. Evaluation is paused
with its full state intact. Inspect the pending call via
pending_external_name /
pending_external_args,
supply the result with
resolve_external, then call
resume_function_eval.
Trait Implementations§
Source§impl Clone for FunctionEval
impl Clone for FunctionEval
Source§fn clone(&self) -> FunctionEval
fn clone(&self) -> FunctionEval
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more