Expand description
Activity: the unit of concurrent execution.
Structs§
- Activity
- A running activity.
- Activity
Config - Configuration for an activity.
- Activity
Metrics - Phase
Poll Context - Runtime context for SRD-75 phase-level poll. Carried on
Activitywhen the phase declares apoll:block; consumed by the fiber loop after each source-exhaustion event to decide whether to terminate (predicate satisfied or timeout) or rewind and run another iteration.
Enums§
- Phase
Poll Timeout Policy - SRD-75
on_timeoutpolicy — seePhasePollContext::on_timeout.
Functions§
- declare_
adapter_ controls - Invoke
DriverAdapter::declare_controlsfor each unique adapter instance against the given parent component, deduping byArc-pointer identity. The same adapterArcmay be entered into the map under multiple alias keys; this guarantees each physical instance gets exactly one declaration call per invocation of this helper. - terminal_
cols - Best-effort terminal column count read off stderr (fd 2) via
the
TIOCGWINSZioctl. ReturnsNonewhen stderr isn’t a TTY or the call fails. The status renderer (now hosted bynmbrs-tui::log_only_sink) uses this to clamp the rendered status to a single visual row, since a wrap would leave previous-tick text on screen below the cursor — the in-place rewrite only erases from the cursor through end of the current visual line. - truncate_
to_ width - Truncate
sto at mostmax_colsvisible columns, appending an ellipsis when truncation actually elides content. Skips ANSI SGR escape sequences (\x1b[...m) when counting visible width — they consume characters in the string but no terminal columns. The truncation point is always at a character boundary that’s NOT inside an escape sequence, so we never emit a half-broken\x1b[3to the terminal.