pub enum ErrorKind {
Show 16 variants
Validation,
Authentication,
NotFound,
PermissionDenied,
BadRequest,
Internal,
Transport,
Serialization,
Protocol,
Timeout,
Unavailable,
RateLimited,
Configuration,
ExternalService,
Cancelled,
Handler,
}
Expand description
Error classification for programmatic handling
Variants§
Validation
Input validation failed
Authentication
Authentication or authorization failed
NotFound
Resource was not found
PermissionDenied
Operation is not permitted
BadRequest
Request was malformed or invalid
Internal
Server internal error
Transport
Network or transport error
Serialization
Serialization/deserialization error
Protocol
Protocol violation or incompatibility
Timeout
Operation timed out
Resource is temporarily unavailable
RateLimited
Rate limit exceeded
Configuration
Configuration error
ExternalService
External dependency failed
Cancelled
Operation was cancelled
Handler
Handler execution error
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
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,
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§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.