Expand description
Step handlers — the Rust replacement for Java’s reflective arity-matched SAM
invocation (Execute.invokeHandler/samMethod). A handler is a boxed closure
over (state, args); arity is validated at the constructor. StepReturn
carries the sync-or-Future channel (the analog of “an Object that might be
a CompletableFuture”).
Structs§
- Handler
- A registered step handler: a closure over
(state, args_after_state).
Enums§
- Step
Output - What a handler produced. A stimulus yields the whole next state, which is
opaque to the core — it is threaded between a file’s steps and replaced
wholesale, never compared, serialized, or inspected. A sensor yields the
value to compare against the document (
None= no assertion). - Step
Return - The sync-or-async return channel.
Type Aliases§
- Handler
Return - A handler’s resolved return:
Ok(None)= “no assertion” (Javanull),Ok(Some(v))= a value,Err(_)= an author-signalled failure (Javathrow).