[][src]Struct casper_execution_engine::storage::global_state::in_memory::InMemoryGlobalState

pub struct InMemoryGlobalState {
    pub environment: Arc<InMemoryEnvironment>,
    pub trie_store: Arc<InMemoryTrieStore>,
    pub protocol_data_store: Arc<InMemoryProtocolDataStore>,
    pub empty_root_hash: Blake2bHash,
}

Fields

environment: Arc<InMemoryEnvironment>trie_store: Arc<InMemoryTrieStore>protocol_data_store: Arc<InMemoryProtocolDataStore>empty_root_hash: Blake2bHash

Implementations

impl InMemoryGlobalState[src]

pub fn empty() -> Result<Self, Error>[src]

Creates an empty state.

pub fn from_pairs(
    correlation_id: CorrelationId,
    pairs: &[(Key, StoredValue)]
) -> Result<(Self, Blake2bHash), Error>
[src]

Creates a state from a given set of Key, StoredValue pairs.

Trait Implementations

impl StateProvider for InMemoryGlobalState[src]

type Error = Error

type Reader = InMemoryGlobalStateView

pub fn missing_trie_keys(
    &self,
    correlation_id: CorrelationId,
    trie_key: Blake2bHash
) -> Result<Vec<Blake2bHash>, Self::Error>
[src]

Finds all of the keys of missing descendant Trie<Key,StoredValue> values

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,