Expand description
Per-session actor for the SessionPixSupervisor.
The worker serializes lifecycle events through the deterministic core, manages the deadline timer, applies safety-critical gate actions locally, and forwards actions to an external I/O driver.
Runtime-agnostic: uses crossfire channels and the runtime prelude from
hopr_utils so no direct tokio dependency (tests use tokio freely).
StructsΒ§
- Session
PixSupervisor Handle - Cloneable handle to a running
SessionPixWorker.
EnumsΒ§
FunctionsΒ§
- dispatch π
- Apply gate control, forward
actions, then report whether the worker should keep running. - is_
coalescible π - Returns
truefor actions that are safe to drop when the action channel is transiently full. - process_
cmd π - Handle a received command from the handle.
- publish_
telemetry π - Publishes this Sessionβs share of the node-level PIX aggregates.
- report_
fill_ πstall - Counts a fill stall, if one just began.
- send_
actions π - Non-blocking forward of actions to the driver.
- spawn_
supervisor_ worker - Spawn a supervisor worker and return its handle and action driver receiver.
- worker_
loop π
Type AliasesΒ§
- Action
Channel π - Action
Rx - Action
Tx - CmdChannel π
- CmdRx π
- CmdTx π