Module ic_stable_structures::cell

source ·
Expand description

A serializable value stored in the stable memory.

Structs§

  • Represents a serializable value stored in the stable memory. It has semantics similar to “stable variables” in Motoko and share the same limitations. The main difference is that Cell writes its value to the memory on each assignment, not just in upgrade hooks. You should use cells only for small (up to a few MiB) values to keep upgrades safe.

Enums§

  • Indicates a failure to initialize a Cell.
  • Indicates a failure to set cell’s value.