pub enum JudgmentErrorKind {
Unauthorized,
RateLimited,
Timeout,
Upstream,
Decode,
Transport,
InvalidRequest,
}Expand description
Failure class of a JudgmentError.
Variants§
The provider rejected the key (401/403).
RateLimited
The provider throttled the call (429).
Timeout
No reply within CPM_LLM_TIMEOUT_SECS.
Upstream
Any other provider-side failure (5xx, other non-success statuses).
Decode
The reply arrived but does not decode or does not answer the request.
Transport
No reply: connection refused/reset, DNS, TLS.
InvalidRequest
The questions or state were rejected locally before sending.
Implementations§
Trait Implementations§
Source§impl Clone for JudgmentErrorKind
impl Clone for JudgmentErrorKind
impl Copy for JudgmentErrorKind
Source§impl Debug for JudgmentErrorKind
impl Debug for JudgmentErrorKind
Source§impl Display for JudgmentErrorKind
impl Display for JudgmentErrorKind
impl Eq for JudgmentErrorKind
Source§impl Hash for JudgmentErrorKind
impl Hash for JudgmentErrorKind
Source§impl PartialEq for JudgmentErrorKind
impl PartialEq for JudgmentErrorKind
impl StructuralPartialEq for JudgmentErrorKind
Auto Trait Implementations§
impl Freeze for JudgmentErrorKind
impl RefUnwindSafe for JudgmentErrorKind
impl Send for JudgmentErrorKind
impl Sync for JudgmentErrorKind
impl Unpin for JudgmentErrorKind
impl UnsafeUnpin for JudgmentErrorKind
impl UnwindSafe for JudgmentErrorKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.