canic_core/api/ready.rs
1use crate::{
2 dto::state::BootstrapStatusResponse,
3 ops::runtime::{bootstrap::BootstrapStatusOps, ready::ReadyOps},
4};
5
6// Internal readiness barrier for bootstrap synchronization.
7// Not a public diagnostic or state view.
8///
9/// ReadyApi
10///
11
12pub struct ReadyApi;
13
14impl ReadyApi {
15 #[must_use]
16 pub fn is_ready() -> bool {
17 ReadyOps::is_ready()
18 }
19
20 #[must_use]
21 pub fn bootstrap_status() -> BootstrapStatusResponse {
22 BootstrapStatusOps::snapshot()
23 }
24}