pub enum RetrieveError {
EmptyQuery,
EmptyIndex,
InvalidParameter(String),
DimensionMismatch {
query_dim: usize,
doc_dim: usize,
},
InvalidSparseVector(String),
Io(String),
OutOfBounds(usize),
FormatError(String),
Serialization(String),
Other(String),
}Expand description
Errors that can occur during indexing/search operations.
Variants§
EmptyQuery
Empty query provided.
EmptyIndex
Empty index (no documents indexed).
InvalidParameter(String)
Invalid parameter value.
DimensionMismatch
Dimension mismatch between query and documents.
InvalidSparseVector(String)
Invalid sparse vector (empty or malformed).
Io(String)
I/O error (wrapped)
OutOfBounds(usize)
Out of bounds access
FormatError(String)
Format error
Serialization(String)
Serialization error
Other(String)
Other error (for extensibility).
Trait Implementations§
Source§impl Clone for RetrieveError
impl Clone for RetrieveError
Source§fn clone(&self) -> RetrieveError
fn clone(&self) -> RetrieveError
Returns a duplicate of the value. Read more
1.0.0 · 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 RetrieveError
impl Debug for RetrieveError
Source§impl Display for RetrieveError
impl Display for RetrieveError
Source§impl Error for RetrieveError
impl Error for RetrieveError
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 From<Error> for RetrieveError
impl From<Error> for RetrieveError
Source§impl PartialEq for RetrieveError
impl PartialEq for RetrieveError
impl StructuralPartialEq for RetrieveError
Auto Trait Implementations§
impl Freeze for RetrieveError
impl RefUnwindSafe for RetrieveError
impl Send for RetrieveError
impl Sync for RetrieveError
impl Unpin for RetrieveError
impl UnsafeUnpin for RetrieveError
impl UnwindSafe for RetrieveError
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