Function canister_tools::init
source ยท pub fn init<Data: 'static + Serializable>(
s: &'static LocalKey<RefCell<Data>>,
memory_id: MemoryId
)
Expand description
Call this function in the canister_init method. This function registers the data structure with the memory_id for the upgrades and snapshots.