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.