Module std.concurrency.lifecycle
Generic lifecycle state machine for resource-owning services.
Contents
Types
Enum LifecycleError
Why a lifecycle-managed service faulted.
Variants
Machines
Machine Lifecycle
pub machine Lifecycle<T>
States
CreatedInitialisingRunning { handle: T }StoppingStoppedFaulted { error: LifecycleError }
Events
InitialiseStarted { handle: T }StopCrashed { error: LifecycleError }
See the machine reference for generated step, report, output, and state-name APIs.