[−][src]Trait casper_execution_engine::storage::global_state::StateReader   
A reader of state
Associated Types
Loading content...Required methods
pub fn read(
    &self, 
    correlation_id: CorrelationId, 
    key: &K
) -> Result<Option<V>, Self::Error>[src]
&self,
correlation_id: CorrelationId,
key: &K
) -> Result<Option<V>, Self::Error>
Returns the state value from the corresponding key
pub fn read_with_proof(
    &self, 
    correlation_id: CorrelationId, 
    key: &K
) -> Result<Option<TrieMerkleProof<K, V>>, Self::Error>[src]
&self,
correlation_id: CorrelationId,
key: &K
) -> Result<Option<TrieMerkleProof<K, V>>, Self::Error>
Returns the merkle proof of the state value from the corresponding key
pub fn read_trie(
    &self, 
    correlation_id: CorrelationId, 
    trie_key: &Blake2bHash
) -> Result<Option<Trie<K, V>>, Self::Error>[src]
&self,
correlation_id: CorrelationId,
trie_key: &Blake2bHash
) -> Result<Option<Trie<K, V>>, Self::Error>
Reads a Trie<K,V> from the state if it is present
Implementors
impl StateReader<Key, StoredValue> for InMemoryGlobalStateView[src]
type Error = Error
pub fn read(
    &self, 
    correlation_id: CorrelationId, 
    key: &Key
) -> Result<Option<StoredValue>, Self::Error>[src]
&self,
correlation_id: CorrelationId,
key: &Key
) -> Result<Option<StoredValue>, Self::Error>
pub fn read_with_proof(
    &self, 
    correlation_id: CorrelationId, 
    key: &Key
) -> Result<Option<TrieMerkleProof<Key, StoredValue>>, Self::Error>[src]
&self,
correlation_id: CorrelationId,
key: &Key
) -> Result<Option<TrieMerkleProof<Key, StoredValue>>, Self::Error>
pub fn read_trie(
    &self, 
    _correlation_id: CorrelationId, 
    trie_key: &Blake2bHash
) -> Result<Option<Trie<Key, StoredValue>>, Self::Error>[src]
&self,
_correlation_id: CorrelationId,
trie_key: &Blake2bHash
) -> Result<Option<Trie<Key, StoredValue>>, Self::Error>
Reads a Trie<K,V> from the state if it is present
impl StateReader<Key, StoredValue> for LmdbGlobalStateView[src]
type Error = Error
pub fn read(
    &self, 
    correlation_id: CorrelationId, 
    key: &Key
) -> Result<Option<StoredValue>, Self::Error>[src]
&self,
correlation_id: CorrelationId,
key: &Key
) -> Result<Option<StoredValue>, Self::Error>
pub fn read_with_proof(
    &self, 
    correlation_id: CorrelationId, 
    key: &Key
) -> Result<Option<TrieMerkleProof<Key, StoredValue>>, Self::Error>[src]
&self,
correlation_id: CorrelationId,
key: &Key
) -> Result<Option<TrieMerkleProof<Key, StoredValue>>, Self::Error>
pub fn read_trie(
    &self, 
    _correlation_id: CorrelationId, 
    trie_key: &Blake2bHash
) -> Result<Option<Trie<Key, StoredValue>>, Self::Error>[src]
&self,
_correlation_id: CorrelationId,
trie_key: &Blake2bHash
) -> Result<Option<Trie<Key, StoredValue>>, Self::Error>
Reads a Trie<K,V> from the state if it is present