Skip to main content

Module host

Module host 

Source
Expand description

The process-wide slot for the one active transport instance, its events, and the dial the bridge runs for every proxied connection.

Structs§

ActiveTransport

Enums§

TransportEvent

Functions§

activate
Install t. Err if a slot is occupied: callers uninstall first.
active
active_as
deactivate
uninstall, then shut the instance down; with join, wait until the bridge holds none of it.
dial
The dial behind every proxied connection: a live ticket, the active instance its owner runs, the shared pre-router, the kind’s rules on the live settings, then the kind’s own dial.
notify
Every kind calls this on each ready() flip. Ready and Lost move the epoch while the live egress can run through the instance; an event from an instance that is not the active one, or whose owner is not live, is dropped.
subscribe
uninstall
Empty the slot and cut every connection the instance carried. Returns it for shutdown.