Skip to main content

StoreContractViolation

Enum StoreContractViolation 

Source
pub enum StoreContractViolation {
Show 54 variants CheckpointArtifactTooLarge { actual: u64, maximum: u64, }, CheckpointArtifactEmpty, CheckpointArtifactSymbolicLink(PathBuf), CheckpointArtifactPathEscaped(PathBuf), CheckpointArtifactUnsupportedFileType(PathBuf), CheckpointArtifactUnsupportedUri(String), CheckpointSchemaVersion { expected: u16, actual: u16, }, CheckpointInvalidField { field: &'static str, reason: String, }, CheckpointInvalidOffsets(String), CheckpointDestructiveRollback, CheckpointRestoreVerificationIncomplete, HaInvalidMasterEpoch(i32), HaInvalidSyncStateSetEpoch(i32), HaInvalidBrokerId(i64), HaBrokerIdOutOfRange(u64), HaInvalidReplicaCount(usize), HaInvalidAckPolicy(i32), HaInvalidOffset(i64), HaInvalidLeaseGeneration(u64), HaEmptySyncStateSet, HaLeaderMissingFromSyncStateSet(i64), AppendReceiptEmptyRange, AppendReceiptReversedRange, AppendReceiptRejectedStatusWithRange, AppendReceiptAcceptedStatusWithoutRange, AppendReceiptAppendedWatermarkBehindRange, AppendReceiptDurableWatermarkBehindRange, AppendReceiptDurableWatermarkAheadOfAppended, AppendReceiptMemoryDurabilityAlreadyCovered, AppendReceiptReplicatedDurabilityRequiresDecision, AppendReceiptReplicationDecisionBehindRange, DerivedRecordEmpty, DerivedRecordRangeOverflow, DerivedCursorSourceEpochMismatch { expected: u64, actual: u64, }, DerivedCursorGap { expected: u64, actual: u64, }, DerivedCursorPartialOverlap { committed: u64, record_start: u64, record_end: u64, }, DerivedCheckpointInvalidLength { expected: usize, actual: usize, }, DerivedCheckpointInvalidMagic, DerivedCheckpointUnsupportedVersion(u16), DerivedCheckpointUnknownEngine(u8), DerivedCheckpointEngineMismatch { expected: DerivedEngine, actual: DerivedEngine, }, DerivedCheckpointInvalidReservedByte(u8), DerivedCheckpointChecksumMismatch, TimerSnapshotUnsupportedVersion(u16), TimerSnapshotInvalidMetadata, TimerSnapshotInvalidFile, TimerSnapshotChecksumMismatch, TimerSnapshotInvalidNativeBinding, TimerSnapshotArtifactDigestMismatch, TimerUnknownEngine(String), TimerInvalidPayloadLocator, TimerInvalidPayloadStoreLocator, TimerInvalidRoute, TimerConfigurationOutOfRange { field: &'static str, actual: i128, minimum: i128, maximum: i128, },
}
Expand description

A deterministic violation of a public Store API contract.

This type contains caller, persisted-format, and state-invariant evidence. Operational failures such as filesystem I/O are exposed through crate::StoreError instead, with their private typed causes preserved.

Variants§

§

CheckpointArtifactTooLarge

A checkpoint artifact exceeded its configured byte budget.

Fields

§actual: u64

Observed bytes.

§maximum: u64

Configured maximum bytes.

§

CheckpointArtifactEmpty

A checkpoint artifact contains no payload bytes.

A symbolic link was found in a checkpoint artifact.

§

CheckpointArtifactPathEscaped(PathBuf)

A discovered checkpoint entry escaped the artifact root.

§

CheckpointArtifactUnsupportedFileType(PathBuf)

A checkpoint entry was neither a regular file nor a directory.

§

CheckpointArtifactUnsupportedUri(String)

A checkpoint URI is not a supported local file URI.

§

CheckpointSchemaVersion

A checkpoint schema version does not match the supported version.

Fields

§expected: u16

Supported schema version.

§actual: u16

Observed schema version.

§

CheckpointInvalidField

A checkpoint field violates its field-level contract.

Fields

§field: &'static str

Stable field name.

§reason: String

Validation reason.

§

CheckpointInvalidOffsets(String)

Checkpoint offsets violate their ordering contract.

§

CheckpointDestructiveRollback

A checkpoint permits a destructive rollback.

§

CheckpointRestoreVerificationIncomplete

Checkpoint restore verification is incomplete.

§

HaInvalidMasterEpoch(i32)

A master epoch was not positive.

§

HaInvalidSyncStateSetEpoch(i32)

A sync-state-set epoch was not positive.

§

HaInvalidBrokerId(i64)

A broker identifier was negative.

§

HaBrokerIdOutOfRange(u64)

An unsigned wire broker identifier exceeded the canonical representation.

§

HaInvalidReplicaCount(usize)

A replica policy did not require a remote replica.

§

HaInvalidAckPolicy(i32)

A legacy ACK count or sentinel was unknown.

§

HaInvalidOffset(i64)

A physical offset was negative.

§

HaInvalidLeaseGeneration(u64)

A Controller write-lease generation was zero.

§

HaEmptySyncStateSet

The sync-state set was empty.

§

HaLeaderMissingFromSyncStateSet(i64)

The current leader was absent from the sync-state set.

§

AppendReceiptEmptyRange

An appended range is empty.

§

AppendReceiptReversedRange

An appended range is reversed.

§

AppendReceiptRejectedStatusWithRange

A rejected append status carries an appended range.

§

AppendReceiptAcceptedStatusWithoutRange

An accepted append status does not carry an appended range.

§

AppendReceiptAppendedWatermarkBehindRange

The appended watermark does not cover the appended range.

§

AppendReceiptDurableWatermarkBehindRange

The durable watermark does not cover the claimed durability.

§

AppendReceiptDurableWatermarkAheadOfAppended

The durable watermark exceeds appended progress.

§

AppendReceiptMemoryDurabilityAlreadyCovered

Memory durability under-reports reached local durability.

§

AppendReceiptReplicatedDurabilityRequiresDecision

Replicated durability lacks a canonical acknowledgement decision.

§

AppendReceiptReplicationDecisionBehindRange

A replication acknowledgement does not cover the appended range.

§

DerivedRecordEmpty

A derived record has zero length.

§

DerivedRecordRangeOverflow

A derived record physical range overflows.

§

DerivedCursorSourceEpochMismatch

A derived record belongs to another source epoch.

Fields

§expected: u64

Cursor source epoch.

§actual: u64

Record source epoch.

§

DerivedCursorGap

A derived record begins after the next expected offset.

Fields

§expected: u64

Next expected offset.

§actual: u64

Record start offset.

§

DerivedCursorPartialOverlap

A derived record partially overlaps the committed prefix.

Fields

§committed: u64

Exclusive committed offset.

§record_start: u64

Record start offset.

§record_end: u64

Record end offset.

§

DerivedCheckpointInvalidLength

A derived checkpoint has the wrong encoded length.

Fields

§expected: usize

Required encoded length.

§actual: usize

Observed encoded length.

§

DerivedCheckpointInvalidMagic

A derived checkpoint has invalid magic bytes.

§

DerivedCheckpointUnsupportedVersion(u16)

A derived checkpoint uses an unsupported version.

§

DerivedCheckpointUnknownEngine(u8)

A derived checkpoint names an unknown engine.

§

DerivedCheckpointEngineMismatch

A derived checkpoint belongs to another engine.

Fields

§expected: DerivedEngine

Expected engine owner.

§actual: DerivedEngine

Encoded engine owner.

§

DerivedCheckpointInvalidReservedByte(u8)

A derived checkpoint uses a non-zero reserved byte.

§

DerivedCheckpointChecksumMismatch

A derived checkpoint fails its integrity check.

§

TimerSnapshotUnsupportedVersion(u16)

A timer snapshot uses an unsupported schema version.

§

TimerSnapshotInvalidMetadata

Required timer snapshot metadata is invalid.

§

TimerSnapshotInvalidFile

A timer snapshot file declaration is invalid.

§

TimerSnapshotChecksumMismatch

A timer snapshot manifest fails its integrity check.

§

TimerSnapshotInvalidNativeBinding

Native timer snapshot fields do not match the selected index kind.

§

TimerSnapshotArtifactDigestMismatch

A timer snapshot artifact differs from its manifest declaration.

§

TimerUnknownEngine(String)

A persisted timer engine identifier is not recognized.

§

TimerInvalidPayloadLocator

A timer payload locator cannot identify a non-empty CommitLog record.

§

TimerInvalidPayloadStoreLocator

A timer payload-store locator identifies an empty record.

§

TimerInvalidRoute

A persisted timer route is incomplete.

§

TimerConfigurationOutOfRange

A native Timer resource limit is outside its supported range.

Fields

§field: &'static str

Stable configuration field name.

§actual: i128

Observed value.

§minimum: i128

Inclusive lower bound.

§maximum: i128

Inclusive upper bound.

Trait Implementations§

Source§

impl Clone for StoreContractViolation

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StoreContractViolation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for StoreContractViolation

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StoreContractViolation

Source§

impl Error for StoreContractViolation

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for StoreContractViolation

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for StoreContractViolation

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.