pub enum HandlerAction {
Retry {
policy: RetryPolicy,
},
Continue,
Escalate {
human: Box<HumanStepIR>,
},
Abort,
Repair {
flow_ref: FlowRef,
},
}Expand description
The disposition produced by a handler; kind values are the closed
Disposition enum: retry | continue | escalate | abort | repair
(spine A.4). No variant carries outputs — error paths cannot enter the
data flow (spine R10).
Note on closedness: #[schemars(deny_unknown_fields)] closes each
variant object in the generated schema (baseline parity); serde’s
internally-tagged deserialization is lenient about unknown fields at
runtime — the schema stays authoritative.
Variants§
Retry
Re-enter the step from acting with an independent retry budget.
Fields
policy: RetryPolicyThe retry policy for the re-entry.
Continue
Record and move on (verdict unchanged).
Escalate
Escalate to a human node (compiler-synthesized stepId, 02 §3).
Fields
human: Box<HumanStepIR>The embedded human step (boxed: much larger than sibling variants).
Abort
Abort the run.
Repair
Run a repair subflow — no data outputs; afterwards re-probe
(onResumeDrift) or re-enter (onFail).
Trait Implementations§
Source§impl Clone for HandlerAction
impl Clone for HandlerAction
Source§fn clone(&self) -> HandlerAction
fn clone(&self) -> HandlerAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HandlerAction
impl Debug for HandlerAction
Source§impl<'de> Deserialize<'de> for HandlerAction
impl<'de> Deserialize<'de> for HandlerAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for HandlerAction
impl JsonSchema for HandlerAction
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more