[][src]Module transact::state

Methods for interacting with State.

Transact State is managed via the implementation of three traits: the Write, Read, and Prune. These provide commit, read access, and a way to purge old state, respectively, to an underlying storage mechanism.

Re-exports

pub use crate::state::error::StatePruneError;
pub use crate::state::error::StateReadError;
pub use crate::state::error::StateWriteError;

Modules

change_log
error
hashmap

Provides a simple, in-memory implementation of backed by std::collections::HashMap.

merkle

Enums

StateChange

A change to be applied to state, in terms of keys and values.

Traits

Prune

state::Prune provides a way to remove state ids from a particular state storage system.

Read

state::Read provides a way to retrieve state from a particular storage system.

Write

state::Write provides a way to write to a particular state storage system.