Skip to main content

onlyne_client/runtime/
runloop.rs

1//! Foreground role runtime: one authenticated server link, four tasks, and the
2//! adapter socket that keeps serving plugins across reconnects.
3//!
4//! The transport handles death and redialing behind one handle, so this loop
5//! follows its readiness. Every pass from `Reconnecting` back to `Ready` runs
6//! the order the plan fixes for a reconnect: welcome, intent flush, event
7//! resume, pull.
8
9mod config;
10mod link;
11mod run;
12mod sessions;
13
14#[cfg(test)]
15mod test_support;
16
17pub use config::{
18    ClientInit, DEFAULT_INTENT_ATTEMPTS, EVENT_CURSOR_KEY, FLUSH_PAUSE_MS, NOT_READY_PAUSE_MS,
19    OUTCOME_POLL_MS, PULL_HOLD_MS, PULL_LIMIT, PULL_PAUSE_MS, READINESS_POLL_MS,
20    RECONNECT_LADDER_SECONDS, RunState, SHUTDOWN_CLOSE_BUDGET, acp_options, default_intent_backoff,
21    reconnect_backoff,
22};
23pub use run::run;
24pub use sessions::accept_path;