Enum ark_api::storage::StoreRealm
source · [−]Expand description
Storage realm, where a store exists.
Variants
ModuleInstance
Store is not persisted and only available while open in the current module instance.
This is mostly useful for testing purposes, or possibly to be able to “swap” out and use more than 2 GB of memory in a Wasm module.
Device
Store is specific to a single user, is persisted only on the local.
This means that each user will get their own version of a store with the same name
DeviceUser(UserId)
Store is persisted only on the local device, store names are device-wide for any module to access.
This is useful, for instance, for testing purposes before creating a global cache, as well as for keeping some local caches in modules.
Global
Store is persisted on the local device as well as asynchronously automatically synchronized globally.
GlobalUser(UserId)
Store is specific to a single user, is persisted on the local device as well as asynchronously automatically synchronized globally.
This means that each user will get their own version of a store with the same name
Trait Implementations
sourceimpl Clone for StoreRealm
impl Clone for StoreRealm
sourcefn clone(&self) -> StoreRealm
fn clone(&self) -> StoreRealm
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source. Read more