canic-core 0.42.6

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::{
    InternalError, dto::memory::MemoryLedgerResponse, ops::runtime::memory::MemoryRegistryOps,
};

///
/// MemoryQuery
///

pub struct MemoryQuery;

impl MemoryQuery {
    pub fn ledger() -> Result<MemoryLedgerResponse, InternalError> {
        MemoryRegistryOps::ledger_snapshot()
    }
}