pub enum RetrievalError {
EmptyQuery,
QueryTooLong {
len: usize,
max: usize,
},
InvalidLimit {
value: usize,
max: usize,
},
Storage {
message: String,
},
}Expand description
Errors from retrieval operations.
Note: LLM errors result in graceful degradation (fast search only), not an error return.
Variants§
EmptyQuery
Query is empty
QueryTooLong
Query exceeds size limit
InvalidLimit
Invalid result limit
Storage
Storage error
Trait Implementations§
Source§impl Clone for RetrievalError
impl Clone for RetrievalError
Source§fn clone(&self) -> RetrievalError
fn clone(&self) -> RetrievalError
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 RetrievalError
impl Debug for RetrievalError
Source§impl Display for RetrievalError
impl Display for RetrievalError
Source§impl Error for RetrievalError
impl Error for RetrievalError
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<StorageError> for RetrievalError
impl From<StorageError> for RetrievalError
Source§fn from(err: StorageError) -> Self
fn from(err: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RetrievalError
impl RefUnwindSafe for RetrievalError
impl Send for RetrievalError
impl Sync for RetrievalError
impl Unpin for RetrievalError
impl UnwindSafe for RetrievalError
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