pub enum ModelInvokeErrorKind {
Transient,
TimedOut,
Cancelled,
Permanent,
InvalidRequest,
UnknownOutcome,
}Expand description
Classification of a model-invocation failure — the fact the retry policy branches on.
Variants§
Transient
Recoverable failure a retry policy may allow: transport hiccups, rate limits, server-side errors.
TimedOut
The request exceeded its deadline.
Cancelled
The attempt was cancelled through its AttemptControl, 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§fn clone(&self) -> ModelInvokeErrorKind
fn clone(&self) -> ModelInvokeErrorKind
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 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