#[non_exhaustive]pub enum BoundedLimiterDeny {
RateLimited(Duration),
CapacityFull,
}Expand description
Reason a detailed bounded-limiter check denied a request.
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.
RateLimited(Duration)
The key has exceeded its per-key quota for the current window.
CapacityFull
The limiter is at its tracked-key capacity and the configured policy rejects unseen keys instead of evicting an existing bucket.
Trait Implementations§
Source§impl Clone for BoundedLimiterDeny
impl Clone for BoundedLimiterDeny
Source§fn clone(&self) -> BoundedLimiterDeny
fn clone(&self) -> BoundedLimiterDeny
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 BoundedLimiterDeny
Source§impl Debug for BoundedLimiterDeny
impl Debug for BoundedLimiterDeny
Source§impl Display for BoundedLimiterDeny
impl Display for BoundedLimiterDeny
impl Eq for BoundedLimiterDeny
Source§impl Error for BoundedLimiterDeny
impl Error for BoundedLimiterDeny
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 PartialEq for BoundedLimiterDeny
impl PartialEq for BoundedLimiterDeny
impl StructuralPartialEq for BoundedLimiterDeny
Auto Trait Implementations§
impl Freeze for BoundedLimiterDeny
impl RefUnwindSafe for BoundedLimiterDeny
impl Send for BoundedLimiterDeny
impl Sync for BoundedLimiterDeny
impl Unpin for BoundedLimiterDeny
impl UnsafeUnpin for BoundedLimiterDeny
impl UnwindSafe for BoundedLimiterDeny
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.