pub enum VectorError {
Segment(SegmentError),
NoVectors(ModelId),
DimensionMismatch {
expected: u32,
found: usize,
},
UnsupportedDimensions(u32),
NonFinite,
UnknownUnit(UnitRef),
ForeignMembers,
TooManyMembers,
TooManySegments,
DetailsMismatch,
}Expand description
Why a vector operation failed.
Variants§
Segment(SegmentError)
NoVectors(ModelId)
The family’s segments hold no vector of this model: meaning search has nothing to search yet, which is not the same as finding nothing.
DimensionMismatch
UnsupportedDimensions(u32)
NonFinite
UnknownUnit(UnitRef)
ForeignMembers
TooManyMembers
TooManySegments
DetailsMismatch
Details given with a chunk map do not describe its chunks.
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)>
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 From<SegmentError> for VectorError
impl From<SegmentError> for VectorError
Source§fn from(source: SegmentError) -> Self
fn from(source: SegmentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for VectorError
impl !UnwindSafe for VectorError
impl Forget for VectorError
impl Freeze for VectorError
impl Move for VectorError
impl Send for VectorError
impl Sync for VectorError
impl Unpin for VectorError
impl UnsafeUnpin for VectorError
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