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.

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.
StateMarker
A generated state marker type.
UnitState
A generated state marker with no payload.

Type Aliases§

Result
Convenience result alias used by Statum APIs.