nautalid 0.1.0

Scratch container substrate — TLS 1.3 HTTP/2+3 kernel, LID/AetherDB, optional filter bus (GPL-3.0-or-later).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Process readiness flags (control plane, optional substrate checks).

use std::sync::atomic::{AtomicBool, Ordering};

static BUS_READY: AtomicBool = AtomicBool::new(false);

/// Mark the control-plane bus as bound and accepting requests.
pub fn set_bus_ready(ready: bool) {
    BUS_READY.store(ready, Ordering::Release);
}

/// Whether the ZMTP control plane finished binding (feature **`filter-control`**).
#[must_use]
pub fn bus_ready() -> bool {
    BUS_READY.load(Ordering::Acquire)
}