Skip to main content

Module gate

Module gate 

Source
Expand description

The version gate: every command’s class, and the check a gated command makes against its target’s landing record before its handler runs.

CLASSES is the one table of every action and its class. classify resolves a parsed command to its class, its effect, and its target, and require_aligned judges the record against this binary. The gate never writes, never moves a pin, and never runs init or upgrade by itself.

SATISFIES version-gate:every-command-has-a-gate-class

Structs§

Gated
One gated action: its class, its effect, and the target it judges.

Enums§

Class
The class of one action.
Effect
What a gated action does to its target, which decides its row.

Constants§

CLASSES
Every action of every command family and its class.

Functions§

classify
The class, effect, and target of one parsed command, or None for an action the gate never judges: an exempt action, upgrade, and an action with no target.
require_aligned
Judge command’s target record against this binary before its handler runs, by the rows of version-gate:a-gated-command-names-its-fix.