pub enum RecallError {
IndexUnavailable {
message: String,
},
DimensionMismatch {
expected: usize,
got: usize,
},
EmbeddingFailed {
message: String,
transient: bool,
},
InvalidQuery {
message: String,
},
AuthFailed {
message: String,
},
RateLimited {
retry_after: Duration,
},
Timeout {
elapsed: Duration,
deadline: Duration,
},
NotFound {
id: String,
},
Internal {
message: String,
},
}Expand description
Error type for recall operations.
All variants implement CapabilityError for generic error handling.
Variants§
Index or vector store is temporarily unavailable.
DimensionMismatch
Query embedding dimensions don’t match index dimensions.
EmbeddingFailed
Embedding operation failed (e.g., rate limited, timeout).
Fields
InvalidQuery
Query was malformed or invalid.
AuthFailed
Authentication with the recall backend failed.
RateLimited
Rate limit exceeded; retry after delay.
Timeout
Operation timed out.
Fields
NotFound
Record not found for store/delete operation.
Internal
Internal error with no specific category.
Trait Implementations§
Source§impl CapabilityError for RecallError
impl CapabilityError for RecallError
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
Returns the category of this error for generic handling. Read more
Source§fn is_transient(&self) -> bool
fn is_transient(&self) -> bool
Returns
true if the underlying condition may clear without changing the request. Read moreSource§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Returns
true if retrying the operation makes sense given typical idempotency. Read moreSource§impl Clone for RecallError
impl Clone for RecallError
Source§fn clone(&self) -> RecallError
fn clone(&self) -> RecallError
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 RecallError
impl Debug for RecallError
Source§impl Display for RecallError
impl Display for RecallError
Source§impl Error for RecallError
impl Error for RecallError
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 RecallError
impl RefUnwindSafe for RecallError
impl Send for RecallError
impl Sync for RecallError
impl Unpin for RecallError
impl UnsafeUnpin for RecallError
impl UnwindSafe for RecallError
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