Skip to main content

Module wire

Module wire 

Expand description

Wire-edit application: translates a visual editor’s connect/disconnect gesture into the corresponding StepRouting/StepFailure mutation on a draft Sop. The graph is a projection; these edits write back to the source of truth it was projected from.

Structs§

WireEdit
One editor gesture. role picks which routing field is mutated; port is required for Switch (index into routing.switch) and ignored otherwise. Accepted over RPC (sops/wire-draft) and HTTP.

Enums§

WireError
Why a wire edit was rejected. The draft SOP is left untouched on error.
WireOp

Functions§

apply_wire
Apply one wire edit to a draft SOP, mutating the routing field the edit’s role maps to. Validates both endpoints first; on Err the SOP is unchanged. Semantics per role: