pub enum ExternalErrorKind {
InvalidRequest,
Unauthorized,
Unavailable,
RateLimited,
ContextLimit,
CreditBudgetExceeded,
Timeout,
Cancelled,
Internal,
}Expand description
Adapter-independent category used by Runtime policy and retry decisions.
Variants§
InvalidRequest
The request violates a contract or provider constraint.
The caller or configured credential is not authorized.
The dependency is temporarily unavailable.
RateLimited
The dependency rejected the request due to a rate limit.
ContextLimit
The selected model cannot accept the supplied context.
CreditBudgetExceeded
The run consumed more credits than its frozen admission budget.
Timeout
The operation exceeded its deadline.
Cancelled
The operation was cancelled by its owner.
Internal
The adapter failed without a more specific stable classification.
Trait Implementations§
Source§impl Clone for ExternalErrorKind
impl Clone for ExternalErrorKind
Source§fn clone(&self) -> ExternalErrorKind
fn clone(&self) -> ExternalErrorKind
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 moreimpl Copy for ExternalErrorKind
Source§impl Debug for ExternalErrorKind
impl Debug for ExternalErrorKind
Source§impl<'de> Deserialize<'de> for ExternalErrorKind
impl<'de> Deserialize<'de> for ExternalErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ExternalErrorKind
Source§impl PartialEq for ExternalErrorKind
impl PartialEq for ExternalErrorKind
Source§impl Serialize for ExternalErrorKind
impl Serialize for ExternalErrorKind
impl StructuralPartialEq for ExternalErrorKind
Auto Trait Implementations§
impl Freeze for ExternalErrorKind
impl RefUnwindSafe for ExternalErrorKind
impl Send for ExternalErrorKind
impl Sync for ExternalErrorKind
impl Unpin for ExternalErrorKind
impl UnsafeUnpin for ExternalErrorKind
impl UnwindSafe for ExternalErrorKind
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