pub enum ErrorKind {
Show 19 variants
NotFound,
AlreadyExists,
Conflict,
InvalidState,
Validation,
BusinessLogic,
QuotaExceeded,
PermissionDenied,
LockFailed,
CoordinationFailed,
PiiViolation,
Network,
Database,
Timeout,
RateLimited,
Internal,
Unavailable,
RetryExhausted,
Serialization,
}Expand description
High-level error categorization for metrics and routing.
Variants§
NotFound
AlreadyExists
Conflict
InvalidState
Validation
BusinessLogic
QuotaExceeded
PermissionDenied
LockFailed
CoordinationFailed
PiiViolation
Network
Database
Timeout
RateLimited
Internal
RetryExhausted
Serialization
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorKind
impl<'de> Deserialize<'de> for ErrorKind
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 ErrorClassifiable for ErrorKind
impl ErrorClassifiable for ErrorKind
Source§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Whether this error can be retried automatically.
Source§fn requires_user_intervention(&self) -> bool
fn requires_user_intervention(&self) -> bool
Whether this error requires a human to intervene.
Source§fn retry_after_ms(&self) -> Option<u64>
fn retry_after_ms(&self) -> Option<u64>
Suggested retry delay in milliseconds (None = use default backoff).
Source§fn max_retries(&self) -> u32
fn max_retries(&self) -> u32
Maximum number of retries before giving up.
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.