Skip to main content

Crate sim_lib_journal

Crate sim_lib_journal 

Source
Expand description

Domain-free atomic journal behavior over content-addressed objects.

A journal publishes immutable objects before making entries visible and advances its head through one fenced compare-and-swap transition. Backends implement JournalBackend::admit; callers use Journal so the gapless, closure, redelivery, and replay laws are enforced once.

Structs§

Admission
One atomic admission request. Implementations publish immutable objects and compare the head/fence in the same linearized operation.
BackendCapabilities
Evidence supplied by the concrete Table/Dir binding at construction.
DirProjection
Read-only Dir-shaped snapshot grouped by journal/object namespaces.
EntryLocation
Exact physical locator for a committed v2 entry leaf.
EntryNamespace
Backend-allocated routing token for one v2 entry namespace.
HostDirJournalBackend
Crash-durable journal composition over the canonical host-backed Table/Dir port.
Journal
The single state-machine implementation shared by every backend.
JournalEntry
One immutable journal fact whose identity is the canonical semantic Datum.
JournalHead
The sole authoritative append position.
JournalObject
Immutable semantic value and its convenient payload-byte projection.
Lease
A writer generation. Only the backend can mint a live fence.
MemoryBackend
Deterministic law-reference backend. It is deliberately not durable.
NativeStateEnvelope
The one physical state selected by the native state CAS.
PersistentObjectStore
Persistent semantic object facet backed by an existing journal backend.
Replay
StoredDatumRef
A verified crossing from semantic Datum identity to physical byte identity.
StoredState
A consistent backend snapshot used for verification and replay.
TableProjection
Read-only flat Table-shaped snapshot. It exposes no mutation method and is never consulted by journal authority.
Verification
VerifiedNativePrefixRef
Durable proof reference for the immutable v1 committed prefix.

Enums§

Failpoint
Stable crash-injection boundaries in upgrade and append publication.
JournalError
NativeFormatId
Native physical state version. It never enters a semantic entry identity.
ProjectionRow
Detached row in a read-only projection.
StoreError
Failure of the owned-return persistent semantic object facet.

Traits§

JournalBackend
Object-safe storage seam. A Table backend implements admit with canonical table/cas; it must refuse writes unless CAS and durability are provable.
PersistentSemanticObjects
Owned-return persistent Datum operations over the journal object backend.

Functions§

replay