canic-control-plane 0.27.15

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{dto::state::SubnetStateResponse, ops::storage::state::subnet::SubnetStateOps};

///
/// SubnetStateQuery
///

pub struct SubnetStateQuery;

impl SubnetStateQuery {
    /// Return the current root-owned subnet publication-store snapshot.
    #[must_use]
    pub fn snapshot() -> SubnetStateResponse {
        SubnetStateOps::snapshot_response()
    }
}