pub enum VectorError {
CollectionNotFound(String),
DimensionMismatch {
expected: usize,
actual: usize,
},
Unsupported(String),
Query(String),
Connection(String),
InvalidConfig(String),
InvalidIdentifier(String),
TopKExceeded {
requested: usize,
max: usize,
},
}Expand description
Vector 操作错误
Variants§
CollectionNotFound(String)
Collection 不存在
DimensionMismatch
向量维度不匹配
Unsupported(String)
操作不支持(stub 模式)
Query(String)
SQL 执行错误
Connection(String)
连接错误
InvalidConfig(String)
配置错误
InvalidIdentifier(String)
标识符校验失败
TopKExceeded
M-16 修复:top_k 超过最大限制
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
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()
Auto Trait Implementations§
impl Freeze for VectorError
impl RefUnwindSafe for VectorError
impl Send for VectorError
impl Sync for VectorError
impl Unpin for VectorError
impl UnsafeUnpin for VectorError
impl UnwindSafe 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