#[non_exhaustive]pub enum RuntimeStoreError {
Show 22 variants
WriteFailed(String),
ReadFailed(String),
SessionKeyMismatch {
expected: SessionId,
actual: SessionId,
},
NotFound(String),
Unsupported(String),
PreparedSessionBoundaryRequiresOverride {
profile: RuntimeSessionPersistenceProfile,
},
PreparedRecoveryRequiresAtomicPhysicalHeadCas {
profile: RuntimeSessionPersistenceProfile,
},
HeadCanonicalActivationRequired {
runtime_id: String,
state: String,
},
SessionPersistenceAuthorityConflict {
runtime_id: String,
detail: String,
},
OpsLifecycleEpochRetired {
runtime_id: String,
epoch_id: RuntimeEpochId,
},
UnregisterFinalizationOutcomeUnknown(String),
TranscriptRevisionConflict {
expected: String,
actual: String,
},
SessionSnapshotSuperseded {
runtime_id: String,
},
InvalidInputStateBatchCas {
reason: String,
},
InputIdempotencyIndexUncertain {
runtime_id: String,
key: String,
evidence_input_id: String,
reason: String,
},
MachineLifecycleRepairBlocked {
evidence_digest: Option<String>,
detail: String,
},
SchemaFromTheFuture {
domain: String,
found: i64,
supported: i64,
},
MaintenanceFenceHeld {
path: String,
},
InputRowVersionConflict {
input_id: String,
},
RecoveryInputSetConflict {
runtime_id: String,
},
MachineLifecycleVersionConflict {
runtime_id: String,
},
Internal(String),
}Expand description
Errors from RuntimeStore operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
WriteFailed(String)
Write failed.
ReadFailed(String)
Read failed.
SessionKeyMismatch
The explicit session-store key does not match the serialized session.
NotFound(String)
Not found.
Unsupported(String)
Operation is not supported by this store implementation.
PreparedSessionBoundaryRequiresOverride
A non-whole-blob store declared a profile but did not implement the prepared boundary method required to commit that representation.
Fields
profile: RuntimeSessionPersistenceProfilePreparedRecoveryRequiresAtomicPhysicalHeadCas
Recovery needs a backend that can CAS both runtime authority and the independently observed physical session head in one transaction.
Fields
profile: RuntimeSessionPersistenceProfileHeadCanonicalActivationRequired
A head-canonical store encountered durable whole-blob state that has not completed its explicit, observable profile-activation conversion.
Ordinary boundary application must never perform this conversion implicitly: it can be O(document) and may take long enough to require deploy-facing progress reporting. Open the store through its explicit activation seam and retry only after that seam reports completion.
Fields
SessionPersistenceAuthorityConflict
Persisted session authority conflicts with the configured profile, checkpoint, canonical head, frozen legacy BLOB, or mutation shape.
OpsLifecycleEpochRetired
A detached producer attempted to persist an ops snapshot after the matching epoch was atomically retired by unregister.
UnregisterFinalizationOutcomeUnknown(String)
An unregister-finalization commit may have become durable, but the backend could not authoritatively classify its outcome.
Callers must retry the idempotent atomic finalization and must not publish a compensating lifecycle rollback for this error.
TranscriptRevisionConflict
Runtime snapshot CAS rejected a stale transcript rewrite.
SessionSnapshotSuperseded
An atomic boundary commit carried a session snapshot that was already superseded by the durable append-only head. Callers must observe this as a failed commit rather than mistaking a no-op for publication.
InvalidInputStateBatchCas
The requested exact input-state batch CAS has an invalid row/key shape.
InputIdempotencyIndexUncertain
The maintained idempotency-key index cannot prove a unique answer while a source input row’s key identity is unindexable.
This is durable corruption evidence, not an authoritative miss and not a transient read failure. Callers must fail closed until the named row is repaired or quarantined through an operator-authorized workflow.
MachineLifecycleRepairBlocked
A lifecycle record was observed exactly, but replacing it would risk lowering or fabricating durable runtime fencing authority.
This is a permanent reconciliation result for the observed row, not a transport retry. Callers should project RepairBlocked while retaining the evidence digest for operator repair.
SchemaFromTheFuture
The file’s schema ledger records a version newer than this binary supports: a newer binary migrated the file and this one must refuse it (typed, health-visible refusal — never a crash loop).
MaintenanceFenceHeld
The exclusive maintenance fence is held for this database; storage is under offline maintenance.
InputRowVersionConflict
An input-state update carried an expected prior row version that no longer matches the stored row. The whole atomic boundary fails stale; nothing is written.
RecoveryInputSetConflict
The complete set of nonterminal input rows changed after recovery classified it. The whole recovery boundary fails stale; nothing is written.
MachineLifecycleVersionConflict
A machine-lifecycle commit carried an expected prior row version that no longer matches the stored row. The whole atomic boundary fails stale; nothing is written.
Internal(String)
Internal error.
Trait Implementations§
Source§impl Clone for RuntimeStoreError
impl Clone for RuntimeStoreError
Source§fn clone(&self) -> RuntimeStoreError
fn clone(&self) -> RuntimeStoreError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RuntimeStoreError
impl Debug for RuntimeStoreError
Source§impl Display for RuntimeStoreError
impl Display for RuntimeStoreError
Source§impl Error for RuntimeStoreError
impl Error for RuntimeStoreError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()