pub enum RateLimitOutcome {
Allow,
Deny,
}Expand description
The result of a rate-limit check.
Variants§
Allow
The key is within the policy limit; proceed with the operation.
Deny
The key has exceeded the policy limit; deny the operation.
Trait Implementations§
Source§impl Clone for RateLimitOutcome
impl Clone for RateLimitOutcome
Source§fn clone(&self) -> RateLimitOutcome
fn clone(&self) -> RateLimitOutcome
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 RateLimitOutcome
Source§impl Debug for RateLimitOutcome
impl Debug for RateLimitOutcome
impl Eq for RateLimitOutcome
Source§impl PartialEq for RateLimitOutcome
impl PartialEq for RateLimitOutcome
Source§fn eq(&self, other: &RateLimitOutcome) -> bool
fn eq(&self, other: &RateLimitOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RateLimitOutcome
Auto Trait Implementations§
impl Freeze for RateLimitOutcome
impl RefUnwindSafe for RateLimitOutcome
impl Send for RateLimitOutcome
impl Sync for RateLimitOutcome
impl Unpin for RateLimitOutcome
impl UnsafeUnpin for RateLimitOutcome
impl UnwindSafe for RateLimitOutcome
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