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
impl 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
impl StructuralPartialEq for RateLimitOutcome
Auto Trait Implementations§
impl Forget for RateLimitOutcome
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