pub enum LimitPolicy {
FixedWindow,
SlidingWindow,
TokenBucket,
LeakyBucket,
}Expand description
Rate limit policy labels.
Variants§
FixedWindow
A stable label variant.
SlidingWindow
A stable label variant.
TokenBucket
A stable label variant.
LeakyBucket
A stable label variant.
Implementations§
Trait Implementations§
Source§impl Clone for LimitPolicy
impl Clone for LimitPolicy
Source§fn clone(&self) -> LimitPolicy
fn clone(&self) -> LimitPolicy
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 LimitPolicy
impl Debug for LimitPolicy
Source§impl Default for LimitPolicy
impl Default for LimitPolicy
Source§impl Display for LimitPolicy
impl Display for LimitPolicy
Source§impl FromStr for LimitPolicy
impl FromStr for LimitPolicy
Source§impl Hash for LimitPolicy
impl Hash for LimitPolicy
Source§impl Ord for LimitPolicy
impl Ord for LimitPolicy
Source§fn cmp(&self, other: &LimitPolicy) -> Ordering
fn cmp(&self, other: &LimitPolicy) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LimitPolicy
impl PartialEq for LimitPolicy
Source§fn eq(&self, other: &LimitPolicy) -> bool
fn eq(&self, other: &LimitPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for LimitPolicy
impl PartialOrd for LimitPolicy
impl Copy for LimitPolicy
impl Eq for LimitPolicy
impl StructuralPartialEq for LimitPolicy
Auto Trait Implementations§
impl Freeze for LimitPolicy
impl RefUnwindSafe for LimitPolicy
impl Send for LimitPolicy
impl Sync for LimitPolicy
impl Unpin for LimitPolicy
impl UnsafeUnpin for LimitPolicy
impl UnwindSafe for LimitPolicy
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