pub trait Readonly<S: ReadonlyStorage> {
    fn storage(&self) -> &S;

    fn load<T: DeserializeOwned>(&self, key: &[u8]) -> StdResult<Option<T>> { ... }
    fn load_ns<T: DeserializeOwned>(
        &self,
        ns: &[u8],
        key: &[u8]
    ) -> StdResult<Option<T>> { ... } }
Expand description

Trait for actor that operates in a context with readonly access to the storage.

Required Methods

Get the storage handle

Provided Methods

Load a global

Load a field

Implementors