[][src]Trait casper_execution_engine::storage::global_state::StateReader

pub trait StateReader<K, V> {
    type Error;
    pub fn read(
        &self,
        correlation_id: CorrelationId,
        key: &K
    ) -> Result<Option<V>, Self::Error>;
pub fn read_with_proof(
        &self,
        correlation_id: CorrelationId,
        key: &K
    ) -> Result<Option<TrieMerkleProof<K, V>>, Self::Error>; }

A reader of state

Associated Types

type Error[src]

An error which occurs when reading state

Loading content...

Required methods

pub fn read(
    &self,
    correlation_id: CorrelationId,
    key: &K
) -> Result<Option<V>, Self::Error>
[src]

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]

Returns the merkle proof of the state value from the corresponding key

Loading content...

Implementors

impl StateReader<Key, StoredValue> for InMemoryGlobalStateView[src]

type Error = Error

impl StateReader<Key, StoredValue> for LmdbGlobalStateView[src]

type Error = Error

Loading content...