Skip to main content

Module machine

Module machine 

Source
Expand description

The pure half of super: what state cloud delivery is in, given what the cloud subscriber and the credential broker last said, and what to do when it changes. No clock, no I/O; every call takes now_ms.

Structs§

Machine
Cloud delivery’s state over time, and the episodes that drive the notification and the agents’ notes.

Enums§

Effect
Something Machine decided the runtime should do.
Link
What the cloud subscriber’s loop is doing, as it last reported.

Constants§

PAUSE_NOTICE_MS
How long cloud delivery must have been paused before the agents are told: a reconnect or a token refresh that recovers within this never reaches them. The status bar’s amber “reconnecting” waits the same time.

Functions§

derive
The state a set of inputs comes to, and why it isn’t connected.
pause_reason
Why the agents’ pause note says messages are paused.