#[non_exhaustive]pub enum ClientErrorCategory {
Show 13 variants
InvalidInput,
AuthRequired,
AuthExpired,
ReloginRequired,
Network,
Timeout,
RateLimited,
ProtocolMismatch,
NotFound,
PermissionDenied,
Unsupported,
Conflict,
Internal,
}Expand description
Stable error categories exposed to client hosts.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidInput
Caller supplied invalid input.
AuthRequired
Authentication is missing.
AuthExpired
Authentication expired and must be refreshed.
ReloginRequired
The user must relogin interactively.
Network
Network connectivity failed.
Timeout
Operation timed out.
RateLimited
Remote server rate limited the operation.
ProtocolMismatch
Local and remote protocol versions are incompatible.
NotFound
The target entity was not found.
PermissionDenied
The account does not have permission for the operation.
Unsupported
The operation is unsupported by the current client or server.
Conflict
The operation conflicted with newer state.
Internal
An internal client error occurred.
Trait Implementations§
Source§impl Clone for ClientErrorCategory
impl Clone for ClientErrorCategory
Source§fn clone(&self) -> ClientErrorCategory
fn clone(&self) -> ClientErrorCategory
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 moreimpl Copy for ClientErrorCategory
Source§impl Debug for ClientErrorCategory
impl Debug for ClientErrorCategory
Source§impl<'de> Deserialize<'de> for ClientErrorCategory
impl<'de> Deserialize<'de> for ClientErrorCategory
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 ClientErrorCategory
Source§impl PartialEq for ClientErrorCategory
impl PartialEq for ClientErrorCategory
Source§impl Serialize for ClientErrorCategory
impl Serialize for ClientErrorCategory
impl StructuralPartialEq for ClientErrorCategory
Auto Trait Implementations§
impl Freeze for ClientErrorCategory
impl RefUnwindSafe for ClientErrorCategory
impl Send for ClientErrorCategory
impl Sync for ClientErrorCategory
impl Unpin for ClientErrorCategory
impl UnsafeUnpin for ClientErrorCategory
impl UnwindSafe for ClientErrorCategory
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