pub enum ClientCode {
BadRequest,
AuthFailed,
RateLimited,
PayloadTooLarge,
NotAllowed,
ResourceExhausted,
UnsupportedVersion,
Internal,
}Expand description
Stable client-facing error codes.
These codes are used in outward-facing responses and logging to decouple client behavior from internal error variants.
Variants§
BadRequest
Invalid input / malformed message.
AuthFailed
Auth failed.
RateLimited
Rate limited.
PayloadTooLarge
Payload too large.
NotAllowed
Not allowed by policy.
ResourceExhausted
Resource exhausted
UnsupportedVersion
Unsupported protocol version.
Internal
Internal server error.
Implementations§
Trait Implementations§
Source§impl Clone for ClientCode
impl Clone for ClientCode
Source§fn clone(&self) -> ClientCode
fn clone(&self) -> ClientCode
Returns a duplicate of the value. Read more
1.0.0 · 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 ClientCode
impl Debug for ClientCode
Source§impl PartialEq for ClientCode
impl PartialEq for ClientCode
impl Copy for ClientCode
impl Eq for ClientCode
impl StructuralPartialEq for ClientCode
Auto Trait Implementations§
impl Freeze for ClientCode
impl RefUnwindSafe for ClientCode
impl Send for ClientCode
impl Sync for ClientCode
impl Unpin for ClientCode
impl UnwindSafe for ClientCode
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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.