mars-server · store::memory
Public declarations and documentation for mars-server::store::memory.
Package: mars-server · Workspace version: 0.1.0 · Module: store::memory
This reference follows declared modules and public syntax, including public implementation methods. Function bodies and constant values are omitted. Feature conditions are retained. Private-module re-exports and trait resolution require the compiler; not every declaration is a root import.
store::memory::MemoryStore
In-memory storage backend backed by one transactional state lock.
Every mutation validates all uniqueness and CAS preconditions while holding the write lock, then publishes latest state, snapshot, event, audit, idempotency, and outbox records as one indivisible state transition.
pub struct MemoryStore {
}Source line: 92.
store::memory::MemoryStore::new
Create a new empty in-memory store.
pub fn new() -> Self;Source line: 98.
store::memory::MemoryStore::with_bonds
Create an in-memory store with registry-local bond metadata.
pub fn with_bonds(bonds: impl IntoIterator<Item = Bond>) -> Self;Source line: 105.
store::memory::MemoryStore::entry_count
Returns the number of distinct entry DIDs stored.
pub fn entry_count(&self) -> usize;Source line: 116.
store::memory::MemoryStore::event_count
Returns the number of events in the log.
pub fn event_count(&self) -> usize;Source line: 121.
Source provenance
Source: mars-server/src/store/memory.rs · SHA-256 c1daab53a1dc21cb26dd4003a17c016419aa5d902144d25435ed4ac2bd600a6d. Package overview.