Skip to main content

Crate rocketmq_store_api

Crate rocketmq_store_api 

Source
Expand description

Storage capabilities and their contract-violation model.

Re-exports§

pub use checkpoint::CheckpointArtifact;
pub use checkpoint::CheckpointBackend;
pub use checkpoint::CheckpointManifest;
pub use checkpoint::CheckpointOffsets;
pub use checkpoint::CheckpointRequest;
pub use checkpoint::CheckpointRestoreVerification;
pub use checkpoint::CheckpointStorageIdentity;
pub use checkpoint::CHECKPOINT_SCHEMA_VERSION;

Modules§

checkpoint
Store-owned release-checkpoint domain contracts.

Structs§

AppendReceipt
Canonical receipt for one primary-log append attempt.
CheckpointDirectoryDigest
Deterministic digest and payload length for one checkpoint directory.
CursorAdvance
Prepared contiguous cursor transition. Creating this value does not imply persistence.
DerivedCheckpoint
Versioned, payload-free durable metadata for one derived engine.
DerivedCursor
Exclusive CommitLog position durably completed by one derived engine.
DerivedProgress
Progress of derived records, independent from primary-log acknowledgement.
DerivedRecordId
Stable idempotency key for one record read from the authoritative CommitLog.
FlushBacklog
Compact durable-write pressure projection.
GetResult
Canonical neutral projection of a legacy logical get result.
LeasedBytes
Bytes whose backend lease remains held for the lifetime of this value.
LegacyDerivedCursorV0
Bootstrap representation for migrating an owner that previously stored only an offset.
MasterEpoch
A positive Controller-issued master epoch.
PersistedTimerRoute
Immutable route persisted on first durable admission.
QueryResult
Canonical neutral projection of a legacy key query result.
ReadOutcome
Owned logical-read outcome after backend leases have been decoded by an adapter.
ReplicaAck
One remote replica’s durable acknowledgement.
ReplicaCount
A replication acknowledgement count greater than the local leader alone.
ReplicationAcknowledgement
A proof produced only after the canonical acknowledgement decision succeeds.
ReplicationObservation
A complete, validated observation used for one acknowledgement decision.
SelectResult
One selected physical byte range coupled to its backend lease.
StoreError
Canonical storage failure shared by the capability and implementation layers.
StoreHealthSnapshot
Canonical backend-neutral health projection.
SyncStateSet
A non-empty set of non-negative broker identifiers.
SyncStateSetEpoch
A positive Controller-issued sync-state-set epoch.
TimerEngineEpoch
Epoch fencing work produced by an earlier engine owner.
TimerGeneration
Generation fencing stale recall and delivery records for one timer identity.
TimerId
Stable logical timer identity.
TimerPayloadLocator
Location of the canonical message payload in CommitLog.
TimerPayloadStoreLocator
Stable location of one complete message in the long-horizon payload store.
TimerRecallRequest
Broker-to-store request for generation-aware Extended Timer cancellation.
TimerSnapshotFile
One immutable file included in an Extended Timeline snapshot.
TimerSnapshotManifest
Versioned handoff contract for Timeline, payload, and both replay streams.
TimerSourceCqOffset
Offset of a source record in the internal timer consume queue.
TimerTimelineCursor
Ordered position in a timer timeline.
WriteAuthority
The Controller authority required to accept a write or role transition.
WriteLeaseToken
A generation-scoped Controller write lease token.

Enums§

AckPolicy
The explicit durability condition requested by a synchronous append.
AppendStatus
Backend-neutral outcome of a legacy-compatible append attempt.
CursorAdvanceDisposition
Result of classifying a replayed record against a durable cursor.
DerivedEngine
Stable owner of one independently rebuildable derived view.
Durability
Durability reached by a primary-log append.
GetStatus
Canonical result status for a bounded logical get.
HaRejectReason
Why a write authority or replica policy was rejected.
ReadCacheState
Neutral cache-residency observation for a selected byte range.
ReleaseCheckpointCreateOutcome
Result of attempting to create a release checkpoint.
ReleaseCheckpointCreateRejection
Expected rejection from release-checkpoint creation.
ReleaseCheckpointRestoreOutcome
Result of verifying a release checkpoint for restoration.
ReleaseCheckpointRestoreRejection
Expected rejection from release-checkpoint restore verification.
ReplicationDecision
Canonical outcome of evaluating authority, local durability, and replica acknowledgements.
StoreComponent
Closed vocabulary identifying the storage component that failed.
StoreContractViolation
A deterministic violation of a public Store API contract.
StoreOperation
Closed vocabulary for operations that may cross the capability boundary.
TimerEngineId
Stable identifier of the engine that owns one accepted timer record.
TimerRecallStatus
Stable outcome of an Extended Timer cancellation attempt.
TimerStoreMode
Configured timer storage mode.
TimerTimelineIndexKind
Persistent owner of the large ordered Timeline index. The RocksDB overlay remains present for state, ready, receipt, and checkpoints in both modes.

Constants§

DERIVED_CHECKPOINT_ENCODED_LEN
Fixed byte length of the version-one derived checkpoint format.
DERIVED_CHECKPOINT_FORMAT_VERSION
Current on-disk version of DerivedCheckpoint.
EXTENDED_TIMELINE_FORMAT_VERSION
Current record format written by the extended timeline engine.
JAVA_COMPAT_TIMER_FORMAT_VERSION
Current route format written by the Java-compatible timer engine.
RELEASE_CHECKPOINT_MANIFEST_FILE
Manifest stored beside a checkpoint payload.
TIMER_SNAPSHOT_SCHEMA_VERSION
Current Extended Timeline snapshot manifest schema.

Traits§

AdminStore
Administrative storage capability with implementation-owned values.
DerivedRecordSink
Derived-record append capability with implementation-owned values.
MessageAppender
Message append capability generic over a consumer-owned input.
MessageReader
Message read capability with implementation-owned request and output values.
OffsetIndex
Logical offset lookup capability.
ReleaseCheckpointStore
Authorized, deadline-bounded Store checkpoint capability.
ReplicationControl
Replication control capability with implementation-owned command and state values.
StoreHealth
Health snapshot capability with an implementation-owned projection.
StoreLifecycle
Storage lifecycle capability.
WalPort
Read access to the authoritative primary log owned by a composed backend.

Functions§

decide_replication
Evaluates one append without I/O, mutation, retry, or implicit durability downgrade.
file_uri_to_path
Resolves a checkpoint URI created by path_to_file_uri.
hash_checkpoint_directory
Hashes all regular files in stable relative-path order.
path_to_file_uri
Converts a local path to the file URI emitted in checkpoint manifests.