pub enum BackendErrorKind {
Authentication,
RateLimit,
InvalidRequest,
Unavailable,
Network,
BackendError,
ParseError,
Timeout,
UnsupportedCapability,
ResourceExhausted,
Configuration,
}Expand description
Kind of backend error.
These categories are universal across all backend types.
Variants§
Authentication
Authentication or authorization failure.
RateLimit
Rate limit or quota exceeded.
InvalidRequest
Invalid request parameters.
Backend not available or not found.
Network
Network or connection error.
BackendError
Backend returned an error.
ParseError
Response could not be parsed.
Timeout
Operation timed out.
UnsupportedCapability
Capability not supported by this backend.
ResourceExhausted
Resource exhausted (budget, memory, compute).
Configuration
Configuration error.
Implementations§
Source§impl BackendErrorKind
impl BackendErrorKind
Sourcepub fn is_retryable(self) -> bool
pub fn is_retryable(self) -> bool
Whether errors of this kind are typically retryable.
Trait Implementations§
Source§impl Clone for BackendErrorKind
impl Clone for BackendErrorKind
Source§fn clone(&self) -> BackendErrorKind
fn clone(&self) -> BackendErrorKind
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 BackendErrorKind
impl Debug for BackendErrorKind
Source§impl<'de> Deserialize<'de> for BackendErrorKind
impl<'de> Deserialize<'de> for BackendErrorKind
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
Source§impl Display for BackendErrorKind
impl Display for BackendErrorKind
Source§impl PartialEq for BackendErrorKind
impl PartialEq for BackendErrorKind
Source§fn eq(&self, other: &BackendErrorKind) -> bool
fn eq(&self, other: &BackendErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BackendErrorKind
impl Serialize for BackendErrorKind
impl Copy for BackendErrorKind
impl Eq for BackendErrorKind
impl StructuralPartialEq for BackendErrorKind
Auto Trait Implementations§
impl Freeze for BackendErrorKind
impl RefUnwindSafe for BackendErrorKind
impl Send for BackendErrorKind
impl Sync for BackendErrorKind
impl Unpin for BackendErrorKind
impl UnsafeUnpin for BackendErrorKind
impl UnwindSafe for BackendErrorKind
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.