canic 0.99.28

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
1
2
3
4
5
6
7
//! Public access helpers re-exported from the core access layer.

pub use crate::__internal::core::access::{AccessError, AccessErrorKind, auth, env, fleet};

pub fn require_local() -> Result<(), crate::Error> {
    env::build_network_local().map_err(|err| crate::Error::forbidden(err.to_string()))
}