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

Function write_system_info

core/station/impl/src/core/memory.rs:73–79  ·  view source on GitHub ↗

A helper function to write the system information to stable memory.

(config: SystemInfo)

Source from the content-addressed store, hash-verified

71
72/// A helper function to write the system information to stable memory.
73pub fn write_system_info(config: SystemInfo) {
74 CONFIG.with(|cell| {
75 cell.borrow_mut()
76 .set(SystemState::Initialized(config))
77 .expect("failed to write system information");
78 });
79}
80
81// A helper function to read the system state, which can be uninitialized.
82pub fn read_system_state() -> SystemState {

Calls 1

setMethod · 0.45