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