pub enum RateLimitedVerdict {
Deny,
Allow,
}Expand description
Verdict returned when the token bucket rejects a call.
Variants§
Deny
Fail-closed: deny the request when we exceed the guard’s QPS budget (default for phase 13.1).
Allow
Fail-open: allow the request when rate limited. Useful for advisory guards where overloading the external service is acceptable.
Trait Implementations§
Source§impl Clone for RateLimitedVerdict
impl Clone for RateLimitedVerdict
Source§fn clone(&self) -> RateLimitedVerdict
fn clone(&self) -> RateLimitedVerdict
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 RateLimitedVerdict
impl Debug for RateLimitedVerdict
Source§impl Default for RateLimitedVerdict
impl Default for RateLimitedVerdict
Source§fn default() -> RateLimitedVerdict
fn default() -> RateLimitedVerdict
Returns the “default value” for a type. Read more
Source§impl PartialEq for RateLimitedVerdict
impl PartialEq for RateLimitedVerdict
impl Copy for RateLimitedVerdict
impl Eq for RateLimitedVerdict
impl StructuralPartialEq for RateLimitedVerdict
Auto Trait Implementations§
impl Freeze for RateLimitedVerdict
impl RefUnwindSafe for RateLimitedVerdict
impl Send for RateLimitedVerdict
impl Sync for RateLimitedVerdict
impl Unpin for RateLimitedVerdict
impl UnsafeUnpin for RateLimitedVerdict
impl UnwindSafe for RateLimitedVerdict
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.