Module transact::state[][src]

Expand description

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

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

Enums

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

Traits

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

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

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