canic-core 0.27.2

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
use crate::{
    dto::state::BootstrapStatusResponse,
    ops::runtime::{bootstrap::BootstrapStatusOps, ready::ReadyOps},
};

// Internal readiness barrier for bootstrap synchronization.
// Not a public diagnostic or state view.
///
/// ReadyApi
///

pub struct ReadyApi;

impl ReadyApi {
    #[must_use]
    pub fn is_ready() -> bool {
        ReadyOps::is_ready()
    }

    #[must_use]
    pub fn bootstrap_status() -> BootstrapStatusResponse {
        BootstrapStatusOps::snapshot()
    }
}