Skip to main content

Module runtime

Module runtime 

Source
Available on crate feature runtime only.
Expand description

A small reference runtime.

The core Machine trait is pure and does not own mode. Real systems need a loop that:

  • stores the current mode
  • feeds external events into the machine
  • applies mode changes (optionally checking a Policy)
  • dispatches emitted commands to the outside world

This module provides a minimal, synchronous helper for that loop. It does not provide an event queue, scheduler, or async runtime.

Structsยง

Runner
Owns the current mode and feeds events into a Machine.