Skip to main content

ErrorCode

Enum ErrorCode 

Source
#[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

Source

pub const fn category(self) -> u8

Return the error category (high byte).

Source

pub const fn is_success(self) -> bool

Return true if this code indicates success (category 0x00).

Source

pub const fn is_format_error(self) -> bool

Return true if this is a format error (category 0x01), which is generally fatal.

Trait Implementations§

Source§

impl Clone for ErrorCode

Source§

fn clone(&self) -> ErrorCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorCode

Source§

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

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

impl Hash for ErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ErrorCode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u16> for ErrorCode

Source§

type Error = u16

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

fn try_from(value: u16) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for ErrorCode

Source§

impl Eq for ErrorCode

Source§

impl StructuralPartialEq for ErrorCode

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.