Struct oasis_contract_sdk_storage::cell::ConfidentialCell
source · pub struct ConfidentialCell<'key, T> { /* private fields */ }
Expand description
A storage cell identifies a storage key of a specific type.
Implementations§
source§impl<'key, T> ConfidentialCell<'key, T>
impl<'key, T> ConfidentialCell<'key, T>
source§impl<'key, T> ConfidentialCell<'key, T>where
- T: Decode,
impl<'key, T> ConfidentialCell<'key, T>where
- T: Decode,
sourcepub fn get(&self, store: &dyn ConfidentialStore) -> Option<T>
pub fn get(&self, store: &dyn ConfidentialStore) -> Option<T>
Return the current value of the storage cell.
+ T: Decode,sourcepub fn get(&self, store: &dyn ConfidentialStore) -> Option<T>
pub fn get(&self, store: &dyn ConfidentialStore) -> Option<T>
Return the current value of the storage cell.
§Panics
The method will panic in case the raw cell value cannot be deserialized.
source§impl<'key, T> ConfidentialCell<'key, T>where
- T: Encode,
impl<'key, T> ConfidentialCell<'key, T>where
- T: Encode,
sourcepub fn set(&self, store: &mut dyn ConfidentialStore, value: T)
pub fn set(&self, store: &mut dyn ConfidentialStore, value: T)
Set the value of the storage cell.
+ T: Encode,sourcepub fn set(&self, store: &mut dyn ConfidentialStore, value: T)
pub fn set(&self, store: &mut dyn ConfidentialStore, value: T)
Set the value of the storage cell.
Auto Trait Implementations§
impl<'key, T> Freeze for ConfidentialCell<'key, T>
impl<'key, T> RefUnwindSafe for ConfidentialCell<'key, T>where
T: RefUnwindSafe,
impl<'key, T> Send for ConfidentialCell<'key, T>where
T: Send,
impl<'key, T> Sync for ConfidentialCell<'key, T>where
diff --git a/rust/oasis_contract_sdk_storage/cell/struct.PublicCell.html b/rust/oasis_contract_sdk_storage/cell/struct.PublicCell.html
index 8d6be02e78..0c28207e1a 100644
--- a/rust/oasis_contract_sdk_storage/cell/struct.PublicCell.html
+++ b/rust/oasis_contract_sdk_storage/cell/struct.PublicCell.html
@@ -1,12 +1,12 @@
PublicCell in oasis_contract_sdk_storage::cell - Rust Struct oasis_contract_sdk_storage::cell::PublicCell
source · pub struct PublicCell<'key, T> { /* private fields */ }
Expand description
A storage cell identifies a storage key of a specific type.
Implementations§
source§impl<'key, T> PublicCell<'key, T>
source§impl<'key, T> PublicCell<'key, T>where
- T: Decode,
sourcepub fn get(&self, store: &dyn PublicStore) -> Option<T>
Return the current value of the storage cell.
+ T: Decode,sourcepub fn get(&self, store: &dyn PublicStore) -> Option<T>
Return the current value of the storage cell.
§Panics
The method will panic in case the raw cell value cannot be deserialized.
source§impl<'key, T> PublicCell<'key, T>where
- T: Encode,
sourcepub fn set(&self, store: &mut dyn PublicStore, value: T)
Set the value of the storage cell.
+ T: Encode,sourcepub fn set(&self, store: &mut dyn PublicStore, value: T)
Set the value of the storage cell.
Auto Trait Implementations§
§impl<'key, T> Freeze for PublicCell<'key, T>
§impl<'key, T> RefUnwindSafe for PublicCell<'key, T>where
T: RefUnwindSafe,
§impl<'key, T> Send for PublicCell<'key, T>where
T: Send,
§impl<'key, T> Sync for PublicCell<'key, T>where
diff --git a/rust/oasis_contract_sdk_storage/map/struct.ConfidentialMap.html b/rust/oasis_contract_sdk_storage/map/struct.ConfidentialMap.html
index 786ff23419..2058f966d1 100644
--- a/rust/oasis_contract_sdk_storage/map/struct.ConfidentialMap.html
+++ b/rust/oasis_contract_sdk_storage/map/struct.ConfidentialMap.html
@@ -2,9 +2,9 @@
Implementations§
source§impl<'key, K, V> ConfidentialMap<'key, K, V>
source§impl<'key, K, V> ConfidentialMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
sourcepub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)
Insert a given key/value pair.
-sourcepub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)
Remove a given key.
+ V: Encode + Decode,sourcepub fn get(&self, store: &dyn ConfidentialStore, key: K) -> Option<V>
Lookup a given key.
+sourcepub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)
Insert a given key/value pair.
+sourcepub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)
Remove a given key.
Auto Trait Implementations§
§impl<'key, K, V> Freeze for ConfidentialMap<'key, K, V>
§impl<'key, K, V> RefUnwindSafe for ConfidentialMap<'key, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
§impl<'key, K, V> Send for ConfidentialMap<'key, K, V>where
diff --git a/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html b/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
index 1494a2911b..7af55023c0 100644
--- a/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
+++ b/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
@@ -2,9 +2,9 @@
Implementations§
source§impl<'key, K, V> PublicMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
sourcepub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
Insert a given key/value pair.
-sourcepub fn remove(&self, store: &mut dyn PublicStore, key: K)
Remove a given key.
+ V: Encode + Decode,sourcepub fn get(&self, store: &dyn PublicStore, key: K) -> Option<V>
Lookup a given key.
+sourcepub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
Insert a given key/value pair.
+sourcepub fn remove(&self, store: &mut dyn PublicStore, key: K)
Remove a given key.
Auto Trait Implementations§
§impl<'key, K, V> Freeze for PublicMap<'key, K, V>
§impl<'key, K, V> RefUnwindSafe for PublicMap<'key, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
§impl<'key, K, V> Send for PublicMap<'key, K, V>where
Struct oasis_contract_sdk_storage::cell::PublicCell
source · pub struct PublicCell<'key, T> { /* private fields */ }
Expand description
A storage cell identifies a storage key of a specific type.
Implementations§
source§impl<'key, T> PublicCell<'key, T>
impl<'key, T> PublicCell<'key, T>
source§impl<'key, T> PublicCell<'key, T>where
- T: Decode,
impl<'key, T> PublicCell<'key, T>where
- T: Decode,
sourcepub fn get(&self, store: &dyn PublicStore) -> Option<T>
pub fn get(&self, store: &dyn PublicStore) -> Option<T>
Return the current value of the storage cell.
+ T: Decode,sourcepub fn get(&self, store: &dyn PublicStore) -> Option<T>
pub fn get(&self, store: &dyn PublicStore) -> Option<T>
Return the current value of the storage cell.
§Panics
The method will panic in case the raw cell value cannot be deserialized.
source§impl<'key, T> PublicCell<'key, T>where
- T: Encode,
impl<'key, T> PublicCell<'key, T>where
- T: Encode,
sourcepub fn set(&self, store: &mut dyn PublicStore, value: T)
pub fn set(&self, store: &mut dyn PublicStore, value: T)
Set the value of the storage cell.
+ T: Encode,sourcepub fn set(&self, store: &mut dyn PublicStore, value: T)
pub fn set(&self, store: &mut dyn PublicStore, value: T)
Set the value of the storage cell.
Auto Trait Implementations§
impl<'key, T> Freeze for PublicCell<'key, T>
impl<'key, T> RefUnwindSafe for PublicCell<'key, T>where
T: RefUnwindSafe,
impl<'key, T> Send for PublicCell<'key, T>where
T: Send,
impl<'key, T> Sync for PublicCell<'key, T>where
diff --git a/rust/oasis_contract_sdk_storage/map/struct.ConfidentialMap.html b/rust/oasis_contract_sdk_storage/map/struct.ConfidentialMap.html
index 786ff23419..2058f966d1 100644
--- a/rust/oasis_contract_sdk_storage/map/struct.ConfidentialMap.html
+++ b/rust/oasis_contract_sdk_storage/map/struct.ConfidentialMap.html
@@ -2,9 +2,9 @@
Implementations§
source§impl<'key, K, V> ConfidentialMap<'key, K, V>
source§impl<'key, K, V> ConfidentialMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
sourcepub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)
Insert a given key/value pair.
-sourcepub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)
Remove a given key.
+ V: Encode + Decode,sourcepub fn get(&self, store: &dyn ConfidentialStore, key: K) -> Option<V>
Lookup a given key.
+sourcepub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)
Insert a given key/value pair.
+sourcepub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)
Remove a given key.
Auto Trait Implementations§
§impl<'key, K, V> Freeze for ConfidentialMap<'key, K, V>
§impl<'key, K, V> RefUnwindSafe for ConfidentialMap<'key, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
§impl<'key, K, V> Send for ConfidentialMap<'key, K, V>where
diff --git a/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html b/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
index 1494a2911b..7af55023c0 100644
--- a/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
+++ b/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
@@ -2,9 +2,9 @@
Implementations§
source§impl<'key, K, V> PublicMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
sourcepub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
Insert a given key/value pair.
-sourcepub fn remove(&self, store: &mut dyn PublicStore, key: K)
Remove a given key.
+ V: Encode + Decode,sourcepub fn get(&self, store: &dyn PublicStore, key: K) -> Option<V>
Lookup a given key.
+sourcepub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
Insert a given key/value pair.
+sourcepub fn remove(&self, store: &mut dyn PublicStore, key: K)
Remove a given key.
Auto Trait Implementations§
§impl<'key, K, V> Freeze for PublicMap<'key, K, V>
§impl<'key, K, V> RefUnwindSafe for PublicMap<'key, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
§impl<'key, K, V> Send for PublicMap<'key, K, V>where
source§impl<'key, K, V> ConfidentialMap<'key, K, V>
impl<'key, K, V> ConfidentialMap<'key, K, V>
source§impl<'key, K, V> ConfidentialMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
impl<'key, K, V> ConfidentialMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
sourcepub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)
pub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)
Insert a given key/value pair.
-sourcepub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)
pub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)
Remove a given key.
+ V: Encode + Decode,sourcepub fn get(&self, store: &dyn ConfidentialStore, key: K) -> Option<V>
pub fn get(&self, store: &dyn ConfidentialStore, key: K) -> Option<V>
Lookup a given key.
+sourcepub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)
pub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)
Insert a given key/value pair.
+sourcepub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)
pub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)
Remove a given key.
Auto Trait Implementations§
impl<'key, K, V> Freeze for ConfidentialMap<'key, K, V>
impl<'key, K, V> RefUnwindSafe for ConfidentialMap<'key, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'key, K, V> Send for ConfidentialMap<'key, K, V>where
diff --git a/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html b/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
index 1494a2911b..7af55023c0 100644
--- a/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
+++ b/rust/oasis_contract_sdk_storage/map/struct.PublicMap.html
@@ -2,9 +2,9 @@
Implementations§
source§impl<'key, K, V> PublicMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
sourcepub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
Insert a given key/value pair.
-sourcepub fn remove(&self, store: &mut dyn PublicStore, key: K)
Remove a given key.
+ V: Encode + Decode,sourcepub fn get(&self, store: &dyn PublicStore, key: K) -> Option<V>
Lookup a given key.
+sourcepub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
Insert a given key/value pair.
+sourcepub fn remove(&self, store: &mut dyn PublicStore, key: K)
Remove a given key.
Auto Trait Implementations§
§impl<'key, K, V> Freeze for PublicMap<'key, K, V>
§impl<'key, K, V> RefUnwindSafe for PublicMap<'key, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
§impl<'key, K, V> Send for PublicMap<'key, K, V>where
source§impl<'key, K, V> PublicMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
impl<'key, K, V> PublicMap<'key, K, V>where
K: MapKey,
- V: Encode + Decode,
sourcepub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
pub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
Insert a given key/value pair.
-sourcepub fn remove(&self, store: &mut dyn PublicStore, key: K)
pub fn remove(&self, store: &mut dyn PublicStore, key: K)
Remove a given key.
+ V: Encode + Decode,sourcepub fn get(&self, store: &dyn PublicStore, key: K) -> Option<V>
pub fn get(&self, store: &dyn PublicStore, key: K) -> Option<V>
Lookup a given key.
+sourcepub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
pub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)
Insert a given key/value pair.
+sourcepub fn remove(&self, store: &mut dyn PublicStore, key: K)
pub fn remove(&self, store: &mut dyn PublicStore, key: K)
Remove a given key.