pub struct ConnectManager { /* private fields */ }Expand description
Owns every configured platform’s long-poll/dispatch background task plus
the shared ConnectBridge. All tasks are aborted when the manager
drops (mirrors app_state::builder::EmbeddedBroker/HealthMonitor’s
Drop-based stop — the closest server-lifecycle precedent for a
fire-and-forget background subsystem).
Implementations§
Source§impl ConnectManager
impl ConnectManager
Sourcepub async fn start(
ctx: ConnectContext,
config_snapshot: &Config,
data_dir: Option<PathBuf>,
) -> Self
pub async fn start( ctx: ConnectContext, config_snapshot: &Config, data_dir: Option<PathBuf>, ) -> Self
Builds the bridge, loads its persisted session map, and starts one
long-poll + one dispatch task per recognized platform entry in
config_snapshot.connect.platforms. An empty (or absent) [connect]
config starts zero tasks — fully inert by default, per #452.
Trait Implementations§
Source§impl Drop for ConnectManager
impl Drop for ConnectManager
Auto Trait Implementations§
impl Freeze for ConnectManager
impl RefUnwindSafe for ConnectManager
impl Send for ConnectManager
impl Sync for ConnectManager
impl Unpin for ConnectManager
impl UnsafeUnpin for ConnectManager
impl UnwindSafe for ConnectManager
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more