Skip to main content

Module lifecycle

Module lifecycle 

Source
Expand description

Plugin lifecycle state machine.

Each plugin moves through a defined lifecycle:

  Loaded → Linked → Initialized → Active → Draining → Removed

The state machine is encapsulated here so hot reload (M10 cutover) can drain in-flight references through Arc::clone semantics before swapping in the new instance.

Structs§

EpochFencedReload
Orchestrator for an atomic plugin reload — implements the proposal’s §11.2 epoch-fenced cutover.
PluginLifecycle
Per-plugin lifecycle handle.

Enums§

DrainError
Drain operation errors.
LifecycleState
Discrete lifecycle state.

Type Aliases§

SharedLifecycle
Shared lifecycle handle suitable for capturing in plan / query closures.