pub enum ModelInvokeErrorKind {
Transient,
TimedOut,
Cancelled,
Permanent,
InvalidRequest,
UnknownOutcome,
}Expand description
Classification of a logical model invocation failure.
Variants§
Transient
Recoverable failure a retry policy may allow: transport hiccups, rate limits, server-side errors.
TimedOut
The request exceeded its deadline.
Cancelled
The invocation was cancelled through its CallControl, before send
or while in flight.
Permanent
Non-retryable failure: auth, unusable provider responses, parse failures, and everything else not classified transient.
InvalidRequest
The provider rejected the request itself as malformed.
UnknownOutcome
No observable outcome — e.g. a stream that ended without Done.
Trait Implementations§
Source§impl Clone for ModelInvokeErrorKind
impl Clone for ModelInvokeErrorKind
Source§impl Debug for ModelInvokeErrorKind
impl Debug for ModelInvokeErrorKind
Source§impl<'de> Deserialize<'de> for ModelInvokeErrorKind
impl<'de> Deserialize<'de> for ModelInvokeErrorKind
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 ModelInvokeErrorKind
Source§impl PartialEq for ModelInvokeErrorKind
impl PartialEq for ModelInvokeErrorKind
Source§impl Serialize for ModelInvokeErrorKind
impl Serialize for ModelInvokeErrorKind
impl StructuralPartialEq for ModelInvokeErrorKind
Auto Trait Implementations§
impl Freeze for ModelInvokeErrorKind
impl RefUnwindSafe for ModelInvokeErrorKind
impl Send for ModelInvokeErrorKind
impl Sync for ModelInvokeErrorKind
impl Unpin for ModelInvokeErrorKind
impl UnsafeUnpin for ModelInvokeErrorKind
impl UnwindSafe for ModelInvokeErrorKind
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