MCPcopy Create free account
hub / github.com/dfinity/orbit / get

Method get

core/station/impl/src/models/system.rs:242–247  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

240
241impl SystemState {
242 pub fn get(&self) -> &SystemInfo {
243 match &self {
244 SystemState::Uninitialized => trap("canister not initialized"),
245 SystemState::Initialized(info) => info,
246 }
247 }
248
249 pub fn is_initialized(&self) -> bool {
250 matches!(self, SystemState::Initialized(_))

Callers 15

fromMethod · 0.45
to_dtoMethod · 0.45
try_fromMethod · 0.45
to_resourcesMethod · 0.45
fromMethod · 0.45
to_dtoMethod · 0.45
save_memory_snapshotFunction · 0.45
validate_policy_idFunction · 0.45
fmt_with_contextMethod · 0.45
evaluateMethod · 0.45
validate_requested_byFunction · 0.45

Calls 1

trapFunction · 0.85

Tested by 1

is_matchMethod · 0.36