Skip to main content

Module router_callbacks

Module router_callbacks 

Source
Expand description

Native callback streams over the backend subscription router.

The receiver owns the shared wires and their suspension intent (shared_wires); this module keeps the app’s suspend and resume calls. Retryable wire failures keep leases alive and reconnect with backoff. Each callback stream reports close on terminal failure or explicit close.

Traits§

ApiClientIdentity
Stable identity of the Arc that owns a backend API client.

Functions§

resume_bidi_streams
Resume shared wires. Reconnect and target processing continue in their tasks.
stream_all_messages_with_callback_dispatch
keep_alive lives until the subscription opens.
stream_conversation_messages_with_callback_dispatch
stream_conversations_with_callback_dispatch
keep_alive lives until the subscription opens.
suspend_bidi_streams
Suspend every shared wire and remember the intent for new wires.