pub enum MemoryStoreError {
Show 15 variants
Scope(String),
SourceRange {
start: u64,
end: u64,
},
Embedding(String),
Storage(String),
LockPoisoned,
PointIdOutOfRange,
PointIdOverflow,
TaskJoin(String),
TextCorruption {
point_id: i64,
},
IndexDivergence {
point_id: i64,
},
ScopePoisoned,
ScopeRepairFailed {
original: Box<MemoryStoreError>,
repair: Box<MemoryStoreError>,
},
Unsupported {
operation: &'static str,
},
EnumerationLimitZero,
Io(Error),
}Expand description
Errors from memory store operations.
Each underlying failure is a distinct typed variant so callers can distinguish (e.g.) a poisoned index lock from a storage fault from an embedding serialization error without parsing message substrings.
Variants§
Scope(String)
An indexing/search scope did not contain the supplied metadata.
SourceRange
An inverted message source range (start > end).
Embedding(String)
Embedding/metadata serialization or deserialization failed.
Storage(String)
The backing index/metadata store reported a failure.
LockPoisoned
The in-memory index lock was poisoned by a panicking holder.
PointIdOutOfRange
A point ID could not be represented in the target integer width.
PointIdOverflow
Allocating the next point ID would overflow the ID space.
TaskJoin(String)
A background store task failed to join.
TextCorruption
Durable memory text bytes are not valid UTF-8. Corrupt durable bytes are a typed store-corruption fault, never lossy-decoded into searchable/returned memory content.
IndexDivergence
The live nearest-neighbor index referenced a point that has no durable row. The index and the durable store have diverged; results derived from the divergent candidate set must not be silently filtered.
ScopePoisoned
The scoped live index is poisoned: a failed batch could not be repaired from durable state, so reads fail closed until the scope is rebuilt (next successful index attempt or store reopen).
ScopeRepairFailed
A failed batch could not be rolled back/repaired from durable state. The scoped live index is poisoned (fails closed) until rebuilt.
Unsupported
The store does not implement the requested optional operation.
EnumerationLimitZero
An enumeration request carried limit == 0, which cannot advance the
raw-row cursor: next_offset would equal the request offset and a
standard follow-next_offset pagination loop would never terminate.
Io(Error)
An underlying filesystem operation failed.
Implementations§
Source§impl MemoryStoreError
impl MemoryStoreError
Sourcepub fn error_code(&self) -> &'static str
pub fn error_code(&self) -> &'static str
Stable discriminant for the failure class.
Callers (e.g. tool surfaces) use this to preserve the typed distinction downstream without parsing message substrings.
Trait Implementations§
Source§impl Debug for MemoryStoreError
impl Debug for MemoryStoreError
Source§impl Display for MemoryStoreError
impl Display for MemoryStoreError
Source§impl Error for MemoryStoreError
impl Error for MemoryStoreError
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()