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
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StoreRealm
impl Debug for StoreRealm
sourceimpl Hash for StoreRealm
impl Hash for StoreRealm
sourceimpl PartialEq<StoreRealm> for StoreRealm
impl PartialEq<StoreRealm> for StoreRealm
sourcefn eq(&self, other: &StoreRealm) -> bool
fn eq(&self, other: &StoreRealm) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for StoreRealm
impl StructuralEq for StoreRealm
impl StructuralPartialEq for StoreRealm
Auto Trait Implementations
impl RefUnwindSafe for StoreRealm
impl Send for StoreRealm
impl Sync for StoreRealm
impl Unpin for StoreRealm
impl UnwindSafe for StoreRealm
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more