Skip to main content

Module connection_store

Module connection_store 

Source
Expand description

Module providing the pluggable connection-identity persistence trait (client ID + last-known server connect info) used by ServerSender/ AtomicClient, plus the library’s default Settings-table-backed implementation.

Structs§

NativeDbConnectionStore
Default ConnectionStore backed by the library’s own DB/Settings table — a drop-in replacement for the old db: DB-threading pattern that reuses the exact same get_setting_by_key/set_setting/ [remove_setting] logic (including their spawn_blocking handling of the redb fsync), so adopting it is a behavior-preserving swap.

Traits§

ConnectionStore
Manages the connection-identity state atomic_websocket persists internally, decoupling ServerSender/AtomicClient from any particular storage backend. Implement this to back the state with your own database; NativeDbConnectionStore is a ready-to-use implementation backed by the library’s own DB/Settings table.