#[non_exhaustive]pub enum VectorError {
Show 16 variants
BudgetExhausted(MemError),
DimensionMismatch {
expected: usize,
got: usize,
},
StoredDimensionMismatch {
expected: usize,
got: usize,
},
InvalidFilterBitmap {
detail: String,
},
InvalidInput {
detail: String,
},
VectorUnavailable {
id: u32,
},
VectorDecodeFailed {
id: u32,
detail: String,
},
UnsupportedVersion {
found: u8,
expected: u8,
},
InvalidMagic,
DeserializationFailed(String),
CheckpointEncryptedNoKey,
CheckpointPlaintextKeyRequired,
CheckpointEncryptionError {
detail: String,
},
CheckpointSerializationError {
detail: String,
},
CheckpointDeserializationError {
detail: String,
},
SegmentIo(Error),
}Expand description
Errors from vector index operations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BudgetExhausted(MemError)
DimensionMismatch
An input vector — a search query or an inserted vector — has a different dimension from the index. The caller’s input is wrong; the index is intact.
StoredDimensionMismatch
Stored data — a PQ code, a segment backing, a materialized node vector — disagrees with the index dimension. The stored data is corrupt or belongs to another index.
InvalidFilterBitmap
A serialized pre-filter bitmap does not decode. Searching without it would return rows the filter excludes, so the search fails instead.
InvalidInput
An index build or training call received input it cannot use: an empty training set, a zero dimension, or parameters that do not fit.
A node’s vector could not be materialized: the node is out of range, or its local storage is empty and no segment backing supplies the data.
An empty local storage means the index was restored from a graph-only
checkpoint; the vectors live in an external segment that must be
attached with crate::HnswIndex::with_backing before any caller
copies vectors out of the index.
VectorDecodeFailed
A node’s dtype-encoded bytes could not be decoded to f32.
UnsupportedVersion
InvalidMagic
DeserializationFailed(String)
CheckpointEncryptedNoKey
Checkpoint file is encrypted (starts with SEGV) but no KEK was supplied.
CheckpointPlaintextKeyRequired
Checkpoint file is plaintext but a KEK was configured (policy violation).
CheckpointEncryptionError
AES-256-GCM encryption/decryption or envelope framing of a checkpoint failed.
CheckpointSerializationError
rkyv or MessagePack serialization of a vector checkpoint failed.
CheckpointDeserializationError
rkyv or MessagePack deserialization of a vector checkpoint failed.
SegmentIo(Error)
I/O error from segment file operations (open, mmap, metadata).
Trait Implementations§
Source§impl Debug for VectorError
impl Debug for VectorError
Source§impl Display for VectorError
impl Display for VectorError
Source§impl Error for VectorError
impl Error for VectorError
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()
Source§impl From<Error> for VectorError
impl From<Error> for VectorError
Auto Trait Implementations§
impl !RefUnwindSafe for VectorError
impl !UnwindSafe for VectorError
impl Freeze for VectorError
impl Send for VectorError
impl Sync for VectorError
impl Unpin for VectorError
impl UnsafeUnpin for VectorError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.