Function canister_tools::pre_upgrade

source ยท
pub fn pre_upgrade()
Expand description

Call this function in the pre_upgrade hook. Serializes each registered global variable into the corresponding stable-memory-id that it is registerd with.