pub enum ExactRetrievalError {
EmptyCandidateKey,
DuplicateCandidateKey,
DimensionMismatch {
expected: u16,
found: u16,
},
ZeroLimit,
ResultLimitExceeded {
requested: usize,
maximum: usize,
},
InvalidMinimumScore,
InvalidMinimumMargin,
CandidateBudgetExceeded {
maximum: u64,
},
CandidateByteBudgetExceeded {
maximum: u64,
},
TimedOut,
ArithmeticOverflow,
}Expand description
Failure to execute durable exact retrieval completely.
Variants§
EmptyCandidateKey
Candidate keys must be nonempty.
DuplicateCandidateKey
Candidate keys must be unique in one space.
DimensionMismatch
Candidate and query dimensions must match.
ZeroLimit
At least one match must be requested.
ResultLimitExceeded
The requested result count exceeds policy.
InvalidMinimumScore
The score threshold is outside the canonical cosine range.
InvalidMinimumMargin
The margin is outside the canonical cosine range width.
CandidateBudgetExceeded
The global candidate budget was exhausted.
CandidateByteBudgetExceeded
The aggregate candidate key/vector byte budget was exhausted.
TimedOut
The cooperative timeout elapsed.
ArithmeticOverflow
Checked integer arithmetic failed.
Trait Implementations§
Source§impl Clone for ExactRetrievalError
impl Clone for ExactRetrievalError
Source§fn clone(&self) -> ExactRetrievalError
fn clone(&self) -> ExactRetrievalError
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 ExactRetrievalError
impl Debug for ExactRetrievalError
Source§impl Display for ExactRetrievalError
impl Display for ExactRetrievalError
impl Eq for ExactRetrievalError
Source§impl Error for ExactRetrievalError
impl Error for ExactRetrievalError
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 PartialEq for ExactRetrievalError
impl PartialEq for ExactRetrievalError
impl StructuralPartialEq for ExactRetrievalError
Auto Trait Implementations§
impl Freeze for ExactRetrievalError
impl RefUnwindSafe for ExactRetrievalError
impl Send for ExactRetrievalError
impl Sync for ExactRetrievalError
impl Unpin for ExactRetrievalError
impl UnsafeUnpin for ExactRetrievalError
impl UnwindSafe for ExactRetrievalError
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