pub enum KernelErrorCode {
Show 21 variants
Handshake,
UnsupportedVersion,
Capability,
Validation,
DuplicateKey,
FrameSize,
Sealed,
AlreadyActive,
NotFound,
StaleVersion,
IllegalEdge,
Authority,
IdempotencyConflict,
Fenced,
Overloaded,
SlowConsumer,
Storage,
Schema,
Privilege,
BlobIntegrity,
BlobTombstoned,
}Expand description
The stable refusal set. Errors are VALUES in this contract: a client branches on the code and never parses a message.
Variants§
Handshake
The handshake did not complete: no hello, a late hello, or a non-hello first frame.
UnsupportedVersion
Major version mismatch.
Capability
A capability was malformed, over the count/length bound, or required and not granted.
Validation
The request did not satisfy the contract’s own shape rules.
DuplicateKey
A duplicate JSON key at any nesting depth.
FrameSize
body_length was zero, over the bound, or the kind byte unknown.
Sealed
The kernel is sealed and this request is not on the sealed allowlist.
AlreadyActive
The kernel is already active and this request is activation-only.
NotFound
StaleVersion
CAS refusal; the actual version travels in the error detail.
IllegalEdge
The requested edge is not in the state machine’s table.
Authority
The actor is not permitted; the kernel raised an attention item or denied outright.
IdempotencyConflict
The idempotency key was reused with different canonical request content.
Fenced
A stale writer epoch or fence token was presented.
Overloaded
Bounded queues are full.
SlowConsumer
A subscriber fell too far behind and was disconnected.
Storage
Backend failure, opaque to the contract.
Schema
An unreadable schema_version with no upcaster.
Privilege
The runtime database role holds privileges the kernel refuses to run with, or lacks ones it needs.
BlobIntegrity
A blob failed authentication, digest, or length verification.
BlobTombstoned
The blob was crypto-shredded; its reads fail permanently.
Implementations§
Trait Implementations§
Source§impl Clone for KernelErrorCode
impl Clone for KernelErrorCode
Source§fn clone(&self) -> KernelErrorCode
fn clone(&self) -> KernelErrorCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more