pub enum ProviderFailureKind {
Transport,
StreamInterrupted,
RateLimited,
ServerOverloaded,
ContextWindowExceeded,
UsageLimit,
QuotaExceeded,
Authentication,
InvalidRequest,
Protocol,
ToolSearchExhausted,
RequestTooLarge,
}Variants§
Transport
StreamInterrupted
RateLimited
ServerOverloaded
ContextWindowExceeded
UsageLimit
QuotaExceeded
Authentication
InvalidRequest
Protocol
ToolSearchExhausted
RequestTooLarge
Implementations§
Source§impl ProviderFailureKind
impl ProviderFailureKind
pub fn is_retryable(self) -> bool
pub fn retry_cause(self) -> &'static str
Trait Implementations§
Source§impl Clone for ProviderFailureKind
impl Clone for ProviderFailureKind
impl Copy for ProviderFailureKind
Source§impl Debug for ProviderFailureKind
impl Debug for ProviderFailureKind
impl Eq for ProviderFailureKind
Source§impl PartialEq for ProviderFailureKind
impl PartialEq for ProviderFailureKind
impl StructuralPartialEq for ProviderFailureKind
Auto Trait Implementations§
impl Freeze for ProviderFailureKind
impl RefUnwindSafe for ProviderFailureKind
impl Send for ProviderFailureKind
impl Sync for ProviderFailureKind
impl Unpin for ProviderFailureKind
impl UnsafeUnpin for ProviderFailureKind
impl UnwindSafe for ProviderFailureKind
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
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.