Skip to main content

Crate statum_core

Crate statum_core 

Source
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§

MachineDescriptor
Rust-facing identity for a machine family.
MachineGraph
Structural machine graph emitted from macro-generated metadata.
MachinePresentation
Optional human-facing metadata layered on top of a machine graph.
MachinePresentationDescriptor
Optional machine-level presentation metadata.
RecordedTransition
A runtime record of one chosen transition.
StateDescriptor
Static descriptor for one generated state id.
StatePresentation
Optional state-level presentation metadata.
TransitionDescriptor
Static descriptor for one transition site.
TransitionInventory
Runtime accessor for transition descriptors that may be supplied by a distributed registration surface.
TransitionPresentation
Optional transition-level presentation metadata.

Enums§

Error
Errors returned by Statum runtime helpers.

Traits§

CanTransitionMap
A machine that can transition by mapping its current state data into Next.
CanTransitionTo
A machine that can transition directly to Next.
CanTransitionWith
A machine that can transition using Data.
DataState
A generated state marker that carries payload data.
MachineIntrospection
Static introspection surface emitted for a generated Statum machine.
MachineStateIdentity
Identity for one concrete machine state.
MachineTransitionRecorder
Runtime recording helpers layered on top of static machine introspection.
StateMarker
A generated state marker type.
UnitState
A generated state marker with no payload.

Type Aliases§

Result
Convenience result alias used by Statum APIs.