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.
§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.
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
T: Sync,
impl<'key, T> Unpin for ConfidentialCell<'key, T>where
T: Unpin,
impl<'key, T> UnwindSafe for ConfidentialCell<'key, T>where
T: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more