#[non_exhaustive]pub enum VectorIndexError {
Show 14 variants
InvalidDescriptor(String),
InvalidRequest(String),
InvalidPartition,
InvalidRecordId {
partition: String,
record_index: usize,
},
InvalidLabel {
context: String,
},
DimensionMismatch {
context: String,
expected: usize,
actual: usize,
},
NonFiniteVector {
context: String,
element_index: usize,
},
ZeroVector {
context: String,
},
DuplicateRecordId {
partition: String,
id: String,
},
BudgetExceeded {
resource: VectorBudgetResource,
limit: usize,
required: usize,
},
SizeOverflow,
ScoreOverflow {
partition: String,
id: String,
},
RevisionExhausted,
WorkerFailed(String),
}Expand description
Typed failures from vector admission, mutation, and search.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidDescriptor(String)
InvalidRequest(String)
InvalidPartition
InvalidRecordId
InvalidLabel
DimensionMismatch
NonFiniteVector
ZeroVector
DuplicateRecordId
BudgetExceeded
SizeOverflow
ScoreOverflow
RevisionExhausted
WorkerFailed(String)
Trait Implementations§
Source§impl Clone for VectorIndexError
impl Clone for VectorIndexError
Source§fn clone(&self) -> VectorIndexError
fn clone(&self) -> VectorIndexError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VectorIndexError
impl Debug for VectorIndexError
Source§impl Display for VectorIndexError
impl Display for VectorIndexError
impl Eq for VectorIndexError
Source§impl Error for VectorIndexError
impl Error for VectorIndexError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for VectorIndexError
impl PartialEq for VectorIndexError
impl StructuralPartialEq for VectorIndexError
Auto Trait Implementations§
impl Freeze for VectorIndexError
impl RefUnwindSafe for VectorIndexError
impl Send for VectorIndexError
impl Sync for VectorIndexError
impl Unpin for VectorIndexError
impl UnsafeUnpin for VectorIndexError
impl UnwindSafe for VectorIndexError
Blanket Implementations§
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
Mutably borrows from an owned value. Read more