[−][src]Struct casper_execution_engine::storage::global_state::in_memory::InMemoryGlobalState
Fields
environment: Arc<InMemoryEnvironment>trie_store: Arc<InMemoryTrieStore>protocol_data_store: Arc<InMemoryProtocolDataStore>empty_root_hash: Blake2bHashImplementations
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]
correlation_id: CorrelationId,
pairs: &[(Key, StoredValue)]
) -> Result<(Self, Blake2bHash), Error>
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 checkout(
&self,
prestate_hash: Blake2bHash
) -> Result<Option<Self::Reader>, Self::Error>[src]
&self,
prestate_hash: Blake2bHash
) -> Result<Option<Self::Reader>, Self::Error>
pub fn commit(
&self,
correlation_id: CorrelationId,
prestate_hash: Blake2bHash,
effects: AdditiveMap<Key, Transform>
) -> Result<CommitResult, Self::Error>[src]
&self,
correlation_id: CorrelationId,
prestate_hash: Blake2bHash,
effects: AdditiveMap<Key, Transform>
) -> Result<CommitResult, Self::Error>
pub fn put_protocol_data(
&self,
protocol_version: ProtocolVersion,
protocol_data: &ProtocolData
) -> Result<(), Self::Error>[src]
&self,
protocol_version: ProtocolVersion,
protocol_data: &ProtocolData
) -> Result<(), Self::Error>
pub fn get_protocol_data(
&self,
protocol_version: ProtocolVersion
) -> Result<Option<ProtocolData>, Self::Error>[src]
&self,
protocol_version: ProtocolVersion
) -> Result<Option<ProtocolData>, Self::Error>
pub fn empty_root(&self) -> Blake2bHash[src]
pub fn put_trie(
&self,
correlation_id: CorrelationId,
trie: &Trie<Key, StoredValue>
) -> Result<(), Self::Error>[src]
&self,
correlation_id: CorrelationId,
trie: &Trie<Key, StoredValue>
) -> Result<(), Self::Error>
pub fn missing_trie_keys(
&self,
correlation_id: CorrelationId,
trie_key: Blake2bHash
) -> Result<Vec<Blake2bHash>, Self::Error>[src]
&self,
correlation_id: CorrelationId,
trie_key: Blake2bHash
) -> Result<Vec<Blake2bHash>, Self::Error>
Finds all of the keys of missing descendant Trie<Key,StoredValue> values
Auto Trait Implementations
impl RefUnwindSafe for InMemoryGlobalState[src]
impl Send for InMemoryGlobalState[src]
impl Sync for InMemoryGlobalState[src]
impl Unpin for InMemoryGlobalState[src]
impl UnwindSafe for InMemoryGlobalState[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,