[][src]Module splinter::storage

Storage trait for syncing writes to an object to a backing store

Hands out {read, write} RAII-guarded references to an object, and ensures that when the reference drops, any changes to the object are persisted to the selected storage.

Re-exports

pub use self::memory::MemStorage;
pub use self::yaml::YamlStorage;

Modules

memory

Memory-backed persistence wrapper

sets

Durable sets, both ordered and unordered. Implementations of these sets must be thread-safe.

yaml

Traits

Storage

Storage wrapper that ensures that changes to an object are persisted to a backing store

StorageReadGuard

RAII structure used to allow read access to state object

StorageWriteGuard

RAII structure used to allow write access to state object

Functions

get_storage

Given a location string, returns the appropriate storage