Skip to main content

Module dispatch

Module dispatch 

Source

Structs§

ClientLink
One authenticated server link.
ControlNote
One operator’s word this client is still waiting to see answered.
DispatchState
FrameGuard
One plugin connection held inside an inbound frame it is still being answered.
ReadyNotice
Adapter facts that make a session usable for its task.
SessionSlot

Enums§

ControlWord
The operator’s word one note is the record of.
SettleAuthority
Who asked for one settle, which is what decides whether the never-ran guard reads it.

Constants§

CONTROL_SETTLE_BOUND
How long this client holds an operator’s word open before settling it.
HEARTBEAT_INTERVAL
Server heartbeat interval from the observation rules of §4.
HEARTBEAT_SILENCE_MARGIN
How many heartbeat intervals a live connection may go quiet before the reconnect sweep reads the silence as an agent that stopped.
REQUEST_TIMEOUT
Wait bound for one request round trip.
SESSION_DEAD
Reason a session that stopped answering is closed with.
SETTLE_WITHOUT_TURN
Fault kind for a completion this client refused for want of a turn. The word is what onlyne faults and onlyne-client status carry, so it names the reading that refused the frame.

Traits§

Outbox
Where lifecycle frames leave the dispatcher.

Functions§

close_all
Close every live session’s resource with reason and forget the slots.
dispatch
One delivery becomes the work of one session, or waits for the session its scope sends it to.
missing_capability
note_intent_receipt
Feed the reducer the receipt the outbound queue observed for one session.
note_verdict
Log a reducer verdict and answer the version it advanced to.
on_control
Act on one control command that arrived as a delivery.
on_out
Settle one finished task: publish the verdict, retire what answered for it, and let the receipt leave.
on_plugin_report
from is the connection the frame arrived on, which is what decides whether the report may move the session it names: only the connection serving a session speaks for it, and a connection this client holds read-only is served no state at all (§1 (b)). None is a report this client composes for itself — the fault a refused focus files — and it is the session’s own authority.
on_ready
Report the session ready and hand its held payload to its agent. The ready row reaches the ledger before either the backend delivery or adapter frame, which is the causal order §6 requires.
on_recycled
Retire one session. The stored tuple decides whether a live resource remains to close, and the caller’s reason reaches the backend unchanged, so an operator cancel stops reporting itself as a completion.
on_turn_end
Run 3c’s rule for one turn that ended without a completion exit.
plugin_gap
projection_of
The wire projection of one stored session row, given how its task ended.
send_frame
Deliver one lifecycle frame, and queue it durably when the link is down.
sync_frame
The durable frame one session’s current projection publishes, or None when the store holds no row for it.
sync_session
Publish the current projection of one session.
task_outcome_of
The wire verdict for one task state, which is what a published projection carries beside its derived lifecycle. pending has no wire word.
task_state_of
The task state a reported outcome names. The wire has no word for work still in flight — a completion either says how it ended or is not a completion — so pending comes from the absence of a verdict, not from a report.
with_cluster
Stamp the origin cluster on the state-carrying report kinds.