Expand description
Wire shapes shared by the axum server (serializes) and the Dioxus web client (deserializes).
#[cfg]-neutral — both features compile this module. The fat /api/day chart payload is
deliberately absent from the client side: the web half holds it as an opaque JSON string and
hands it straight to the chart shim.
Structs§
- Activation
- One node’s standing output as of the current tick:
firedsays whether it was this tick’s work, whileout/valscarry the last fired ones forward (Noneonly before the node’s first fire, or once that tick has left the ring).outis the node’s ownGlance(card face),valsthe flattened elements — a slot isNonewhere the node left it empty.jacis the tick’s own row-majorvals.len() × sum(dep lens)local Jacobian — never carried forward — with entriesNonewhere the engine saw no signal (NaN doesn’t survive serde_json). - Activation
Frame - Replay position + the last tick’s activations.
tickcounts consumed events (0 = nothing replayed yet);ts_nsis the last consumed print’s timestamp (0 at start). - DayOut
- The
/api/daychart payload, opaque to both the server and the wasm client (the chart shim is the only reader). Snapshotted per request — under a live feed it keeps growing. - Exact
Block - A tick’s derivative over every element a body reached back over, not just the newest: per dep in
depsorder,vals.len() × widths[d]row-major and appended, oldest lag first — so a dep’s last element-group is exactly itsActivation::jaccolumn.Noneentries for the same reasonjac’s are: NaN does not survive serde_json. - Guide
Out - InkOut
- Serde mirror of
trading_data_dag::Ink: l/c/a only — hue stays renderer-owned. - PlotOut
- Serde mirror of
trading_data_dag::Plot.slotsindexes the node’s flattened elements (empty = all of them), so a node whose out mixes units draws as several plots, each on its own scale, rather than as several nodes. - Point
Out - One bucket’s last fired flat out. What names its slots is the node’s
PlotOut::labelscrossed out, which is where a field worth reading belongs — the chart’s crosshair line and the DAG panel’s hover both read it from there. - SeekReq
- Seek
TsReq - Series
Out - One node’s full-day output sampled once per 1m bucket (last fired value wins).
depslets the chart recompute topo depth without a second fetch;gatesroutes gate nodes to the chart’s dedicated gates pane. - StepReq
- Step
Until Change Req - Step
Until Req - Topo
Node - One node of the static graph, in step (= topo) order. Roots have empty
deps.dimsis the node’s element shape ([]scalar); the client resolves dep dims by name from topology.gatesare the node’s control edges — the client’s gate set is the union over all nodes.
Enums§
- Fidelity
Out - Serde mirror of
trading_data_dag::Fidelity: how much of what a node’s body read its Jacobian covers.omits/whycarry the kernel’s own string, which is the whole point of the variant.