pub enum ProviderErrorKind {
RateLimited,
Auth,
BadRequest,
Server,
Network,
Stalled,
Decode,
Host,
}Expand description
Kind of a failed model or provider call.
The kind alone decides whether a retry middleware may repeat the call;
see ProviderError::is_retryable. Host: a model supplied by a binding
host failed in its own callback; it is never retried.
Variants§
Trait Implementations§
Source§impl Clone for ProviderErrorKind
impl Clone for ProviderErrorKind
impl Copy for ProviderErrorKind
Source§impl Debug for ProviderErrorKind
impl Debug for ProviderErrorKind
Source§impl<'de> Deserialize<'de> for ProviderErrorKind
impl<'de> Deserialize<'de> for ProviderErrorKind
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 ProviderErrorKind
Source§impl PartialEq for ProviderErrorKind
impl PartialEq for ProviderErrorKind
Source§impl Serialize for ProviderErrorKind
impl Serialize for ProviderErrorKind
impl StructuralPartialEq for ProviderErrorKind
Auto Trait Implementations§
impl Forget for ProviderErrorKind
impl Freeze for ProviderErrorKind
impl Move for ProviderErrorKind
impl RefUnwindSafe for ProviderErrorKind
impl Send for ProviderErrorKind
impl Sync for ProviderErrorKind
impl Unpin for ProviderErrorKind
impl UnsafeUnpin for ProviderErrorKind
impl UnwindSafe for ProviderErrorKind
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