diff --git a/rust/oasis_contract_sdk_storage/cell/struct.ConfidentialCell.html b/rust/oasis_contract_sdk_storage/cell/struct.ConfidentialCell.html index a374244135..de7f653b6f 100644 --- a/rust/oasis_contract_sdk_storage/cell/struct.ConfidentialCell.html +++ b/rust/oasis_contract_sdk_storage/cell/struct.ConfidentialCell.html @@ -1,12 +1,12 @@ ConfidentialCell in oasis_contract_sdk_storage::cell - Rust
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>

source

pub const fn new(key: &'key [u8]) -> Self

Create a new storage cell with the specified key and type.

-
source

pub fn clear(&self, store: &mut dyn ConfidentialStore)

Clear the value in the storage cell.

+
source

pub fn clear(&self, store: &mut dyn ConfidentialStore)

Clear the value in the storage cell.

source§

impl<'key, T> ConfidentialCell<'key, T>
where - T: Decode,

source

pub fn get(&self, store: &dyn ConfidentialStore) -> Option<T>

Return the current value of the storage cell.

+ T: Decode,
source

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,

source

pub fn set(&self, store: &mut dyn ConfidentialStore, value: T)

Set the value of the storage cell.

+ T: Encode,
source

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

pub const fn new(key: &'key [u8]) -> Self

Create a new storage cell with the specified key and type.

-
source

pub fn clear(&self, store: &mut dyn PublicStore)

Clear the value in the storage cell.

+
source

pub fn clear(&self, store: &mut dyn PublicStore)

Clear the value in the storage cell.

source§

impl<'key, T> PublicCell<'key, T>
where - T: Decode,

source

pub fn get(&self, store: &dyn PublicStore) -> Option<T>

Return the current value of the storage cell.

+ T: Decode,

source

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,

source

pub fn set(&self, store: &mut dyn PublicStore, value: T)

Set the value of the storage cell.

+ T: Encode,
source

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

pub const fn new(key: &'key [u8]) -> Self

Create a new map instance.

source§

impl<'key, K, V> ConfidentialMap<'key, K, V>
where K: MapKey, - V: Encode + Decode,

source

pub fn get(&self, store: &dyn ConfidentialStore, key: K) -> Option<V>

Lookup a given key.

-
source

pub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)

Insert a given key/value pair.

-
source

pub fn remove(&self, store: &mut dyn ConfidentialStore, key: K)

Remove a given key.

+ V: Encode + Decode,
source

pub fn get(&self, store: &dyn ConfidentialStore, key: K) -> Option<V>

Lookup a given key.

+
source

pub fn insert(&self, store: &mut dyn ConfidentialStore, key: K, value: V)

Insert a given key/value pair.

+
source

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>

§

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>

source

pub const fn new(key: &'key [u8]) -> Self

Create a new map instance.

source§

impl<'key, K, V> PublicMap<'key, K, V>
where K: MapKey, - V: Encode + Decode,

source

pub fn get(&self, store: &dyn PublicStore, key: K) -> Option<V>

Lookup a given key.

-
source

pub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)

Insert a given key/value pair.

-
source

pub fn remove(&self, store: &mut dyn PublicStore, key: K)

Remove a given key.

+ V: Encode + Decode,
source

pub fn get(&self, store: &dyn PublicStore, key: K) -> Option<V>

Lookup a given key.

+
source

pub fn insert(&self, store: &mut dyn PublicStore, key: K, value: V)

Insert a given key/value pair.

+
source

pub 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>

§

impl<'key, K, V> Send for PublicMap<'key, K, V>
where