Expand description
§tramli
Constrained flow engine — state machines that prevent invalid transitions at build time.
Intentionally synchronous. See docs/async-integration.md for async I/O patterns.
Modules§
Macros§
- data_
types - Shorthand for creating a Vec
from type names. Use in requires()andproduces()implementations. - requires
- Alias for
data_types!. Kept for backward compatibility.
Structs§
- Branch
Builder - Builder
- Data
Flow Graph - Bipartite graph of data types (TypeId) and processors/guards. Built automatically during FlowDefinition::build().
- Flow
Context - Accumulator for flow data. Keyed by TypeId — each type appears at most once.
- Flow
Definition - Flow
Engine - Flow
Error - Flow
Instance - From
Builder - InMemory
Flow Store - In-memory FlowStore for testing.
- Mermaid
Generator - Generates Mermaid diagrams from FlowDefinition.
- Node
Info - Info about a processor/guard that produces or consumes a type.
- SubFlow
Builder - Transition
- A single transition in the flow definition.
- Transition
Record
Enums§
- Guard
Output - Guard output.
- Transition
Type
Traits§
- Branch
Processor - Decides which branch to take.
- Clone
Any - Trait combining Any + Clone + Send for type-erased cloneable storage.
- Flow
State - Marker trait for flow state enums.
- State
Processor - Processes a state transition. Must be fast and sync — no I/O.
- Transition
Guard - Guards an external transition. Must not mutate FlowContext.