#[repr(u16)]pub enum ErrorCode {
Show 49 variants
Ok = 0,
OkPartial = 1,
InvalidMagic = 256,
InvalidVersion = 257,
InvalidChecksum = 258,
InvalidSignature = 259,
TruncatedSegment = 260,
InvalidManifest = 261,
ManifestNotFound = 262,
UnknownSegmentType = 263,
AlignmentError = 264,
DimensionMismatch = 512,
EmptyIndex = 513,
MetricUnsupported = 514,
FilterParseError = 515,
KTooLarge = 516,
Timeout = 517,
LockHeld = 768,
LockStale = 769,
DiskFull = 770,
FsyncFailed = 771,
SegmentTooLarge = 772,
ReadOnly = 773,
TileTrap = 1_024,
TileOom = 1_025,
TileTimeout = 1_026,
TileInvalidMsg = 1_027,
TileUnsupportedOp = 1_028,
KeyNotFound = 1_280,
KeyExpired = 1_281,
DecryptFailed = 1_282,
AlgoUnsupported = 1_283,
AttestationInvalid = 1_284,
PlatformUnsupported = 1_285,
AttestationExpired = 1_286,
KeyNotBound = 1_287,
ParentNotFound = 1_536,
ParentHashMismatch = 1_537,
LineageBroken = 1_538,
LineageCyclic = 1_539,
CowMapCorrupt = 1_792,
ClusterNotFound = 1_793,
ParentChainBroken = 1_794,
DeltaThresholdExceeded = 1_795,
SnapshotFrozen = 1_796,
MembershipInvalid = 1_797,
GenerationStale = 1_798,
KernelBindingMismatch = 1_799,
DoubleRootCorrupt = 1_800,
}Expand description
Wire-format error code (u16). The high byte is the category, the low byte is the specific error within that category.
Variants§
Ok = 0
Operation succeeded.
OkPartial = 1
Partial success (some items failed).
InvalidMagic = 256
Segment magic mismatch (expected 0x52564653).
InvalidVersion = 257
Unsupported segment version.
InvalidChecksum = 258
Segment hash verification failed.
InvalidSignature = 259
Cryptographic signature invalid.
TruncatedSegment = 260
Segment payload shorter than declared length.
InvalidManifest = 261
Root manifest validation failed.
ManifestNotFound = 262
No valid MANIFEST_SEG in file.
UnknownSegmentType = 263
Segment type not recognized (advisory, not fatal).
AlignmentError = 264
Data not at expected 64-byte boundary.
DimensionMismatch = 512
Query vector dimension != index dimension.
EmptyIndex = 513
No index segments available.
MetricUnsupported = 514
Requested distance metric not available.
FilterParseError = 515
Invalid filter expression.
KTooLarge = 516
Requested K exceeds available vectors.
Timeout = 517
Query exceeded time budget.
LockHeld = 768
Another writer holds the lock.
LockStale = 769
Lock file exists but owner process is dead.
DiskFull = 770
Insufficient space for write.
FsyncFailed = 771
Durable write (fsync) failed.
SegmentTooLarge = 772
Segment exceeds 4 GB limit.
ReadOnly = 773
File opened in read-only mode.
TileTrap = 1_024
WASM trap (OOB, unreachable, stack overflow).
TileOom = 1_025
Tile exceeded scratch memory (64 KB).
TileTimeout = 1_026
Tile computation exceeded time budget.
TileInvalidMsg = 1_027
Malformed hub-tile message.
TileUnsupportedOp = 1_028
Operation not available on this profile.
KeyNotFound = 1_280
Referenced key_id not in CRYPTO_SEG.
KeyExpired = 1_281
Key past valid_until timestamp.
DecryptFailed = 1_282
Decryption or auth tag verification failed.
AlgoUnsupported = 1_283
Cryptographic algorithm not implemented.
AttestationInvalid = 1_284
Attestation quote verification failed.
PlatformUnsupported = 1_285
TEE platform not supported.
AttestationExpired = 1_286
Attestation quote expired or nonce mismatch.
KeyNotBound = 1_287
Key is not bound to the current TEE measurement.
ParentNotFound = 1_536
Referenced parent file not found.
ParentHashMismatch = 1_537
Parent file hash does not match recorded parent_hash.
LineageBroken = 1_538
Lineage chain is broken (missing link).
LineageCyclic = 1_539
Lineage chain contains a cycle.
CowMapCorrupt = 1_792
COW cluster map is corrupt or unreadable.
ClusterNotFound = 1_793
Referenced cluster not found in COW map.
ParentChainBroken = 1_794
Parent chain is broken (missing ancestor).
DeltaThresholdExceeded = 1_795
Delta patch exceeds compaction threshold.
SnapshotFrozen = 1_796
Snapshot is frozen and cannot be modified.
MembershipInvalid = 1_797
Membership filter is invalid or corrupt.
GenerationStale = 1_798
Generation counter is stale (concurrent modification).
KernelBindingMismatch = 1_799
Kernel binding hash does not match manifest.
DoubleRootCorrupt = 1_800
Double-root manifest is corrupt.
Implementations§
Source§impl ErrorCode
impl ErrorCode
Sourcepub const fn is_success(self) -> bool
pub const fn is_success(self) -> bool
Return true if this code indicates success (category 0x00).
Sourcepub const fn is_format_error(self) -> bool
pub const fn is_format_error(self) -> bool
Return true if this is a format error (category 0x01), which is generally fatal.