Expand description
Core traits and helper types shared by Statum crates.
Most users reach these through the top-level statum crate. This crate
holds the small runtime surface that macro-generated code targets:
- state marker traits
- transition capability traits
- runtime error and result types
- projection helpers for event-log style rebuilds
Modules§
- projection
- Event-stream projection helpers for Statum rebuild flows.
Structs§
- Attested
- A machine value with attached typed provenance for how it was produced.
- Linked
Machine Graph - Erased machine graph emitted for codebase-level export over the linked build.
- Linked
Reference Type Descriptor - One declared reference type carried by the linked build inventory.
- Linked
Relation Descriptor - One exact machine relation carried by the linked build inventory.
- Linked
State Descriptor - Erased state descriptor carried by the linked machine inventory.
- Linked
Transition Descriptor - Erased transition descriptor carried by the linked machine inventory.
- Linked
Transition Inventory - Runtime accessor for erased transition descriptors supplied by a distributed machine inventory.
- Linked
Validator Entry Descriptor - One declared validator-entry surface carried by the linked build inventory.
- Linked
ViaRoute Descriptor - One producer transition that can generate an attested route value.
- Machine
Descriptor - Rust-facing identity for a machine family.
- Machine
Graph - Structural machine graph emitted from macro-generated metadata.
- Machine
Presentation - Optional human-facing metadata layered on top of a machine graph.
- Machine
Presentation Descriptor - Optional machine-level presentation metadata.
- Machine
Reference Target - One exact target declared for a nominal machine reference type.
- Rebuild
Attempt - One validator evaluation recorded during typed rehydration.
- Rebuild
Report - A typed rehydration result plus the validator attempts that produced it.
- Recorded
Transition - A runtime record of one chosen transition.
- Rejection
- A structured validator rejection captured during typed rehydration.
- State
Descriptor - Static descriptor for one generated state id.
- State
Presentation - Optional state-level presentation metadata.
- Static
Machine Link Descriptor - One direct machine-like payload reference written in state data.
- Transition
Descriptor - Static descriptor for one transition site.
- Transition
Inventory - Runtime accessor for transition descriptors that may be supplied by a distributed registration surface.
- Transition
Presentation - Optional transition-level presentation metadata.
- Transition
Presentation Inventory - Runtime accessor for transition presentation metadata that may be supplied by a distributed registration surface.
Enums§
- Branch
- A first-class two-way branching transition result.
- Error
- Errors returned by Statum runtime helpers.
- Linked
Relation Basis - Why one exact relation was inferred.
- Linked
Relation Kind - Exact relation kinds exported by the linked build.
- Linked
Relation Source - One exact relation source exported by the linked build.
- Linked
Relation Target - Exact target written into one linked relation record.
- Machine
Role - Whether one machine family is a local protocol machine or a higher-level composition machine.
Traits§
- CanTransition
Map - A machine that can transition by mapping its current state data into
Next. - CanTransition
To - A machine that can transition directly to
Next. - CanTransition
With - A machine that can transition using
Data. - Data
State - A generated state marker that carries payload data.
- Machine
Introspection - Static introspection surface emitted for a generated Statum machine.
- Machine
Reference - One nominal type that carries an exact machine relation declared once.
- Machine
State Identity - Identity for one concrete machine state.
- Machine
Transition Recorder - Runtime recording helpers layered on top of static machine introspection.
- State
Marker - A generated state marker type.
- Unit
State - A generated state marker with no payload.
Functions§
- linked_
machines - Returns every linked compiled machine family visible to the current build.
- linked_
reference_ types - Returns every linked reference-type declaration visible to the current build.
- linked_
relations - Returns every linked exact relation record visible to the current build.
- linked_
validator_ entries - Returns every linked compiled validator-entry surface visible to the current build.
- linked_
via_ routes - Returns every linked attested transition route visible to the current build.
Type Aliases§
- Result
- Convenience result alias used by Statum APIs.
- Validation
- An opt-in validator result that carries structured rejection details.