pub enum RateLimitError {
Key(String, String),
Quota(String, String),
Store(String, String),
}Expand description
A failure produced while resolving or charging a rate-limit policy.
Variants§
Key(String, String)
The client key could not be resolved.
Quota(String, String)
The request’s quota limit could not be resolved.
Store(String, String)
The rate-limit store could not charge the request reliably.
Implementations§
Trait Implementations§
Source§impl Clone for RateLimitError
impl Clone for RateLimitError
Source§fn clone(&self) -> RateLimitError
fn clone(&self) -> RateLimitError
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 RateLimitError
impl Debug for RateLimitError
Source§impl Display for RateLimitError
impl Display for RateLimitError
impl Eq for RateLimitError
Source§impl Error for RateLimitError
impl Error for RateLimitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<MemoryStoreError> for RateLimitError
Convert the MemoryStoreError to a RateLimitError.
impl From<MemoryStoreError> for RateLimitError
Convert the MemoryStoreError to a RateLimitError.
Source§fn from(err: MemoryStoreError) -> Self
fn from(err: MemoryStoreError) -> Self
Converts to this type from the input type.
Source§impl From<RedisStoreError> for RateLimitError
Convert the RedisStoreError to a RateLimitError.
impl From<RedisStoreError> for RateLimitError
Convert the RedisStoreError to a RateLimitError.
Source§fn from(error: RedisStoreError) -> Self
fn from(error: RedisStoreError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RateLimitError
impl PartialEq for RateLimitError
impl StructuralPartialEq for RateLimitError
Auto Trait Implementations§
impl Freeze for RateLimitError
impl RefUnwindSafe for RateLimitError
impl Send for RateLimitError
impl Sync for RateLimitError
impl Unpin for RateLimitError
impl UnsafeUnpin for RateLimitError
impl UnwindSafe for RateLimitError
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.