pub struct FixedWindowPolicy;Expand description
Fixed window rate limiting policy.
Allows up to quota.max requests per window of quota.per. The counter resets
when a new window starts.
Trait Implementations§
Source§impl Clone for FixedWindowPolicy
impl Clone for FixedWindowPolicy
Source§fn clone(&self) -> FixedWindowPolicy
fn clone(&self) -> FixedWindowPolicy
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 FixedWindowPolicy
Source§impl Debug for FixedWindowPolicy
impl Debug for FixedWindowPolicy
Source§impl Default for FixedWindowPolicy
impl Default for FixedWindowPolicy
Source§fn default() -> FixedWindowPolicy
fn default() -> FixedWindowPolicy
Returns the “default value” for a type. Read more
Source§impl RateLimitPolicy for FixedWindowPolicy
impl RateLimitPolicy for FixedWindowPolicy
Auto Trait Implementations§
impl Freeze for FixedWindowPolicy
impl RefUnwindSafe for FixedWindowPolicy
impl Send for FixedWindowPolicy
impl Sync for FixedWindowPolicy
impl Unpin for FixedWindowPolicy
impl UnsafeUnpin for FixedWindowPolicy
impl UnwindSafe for FixedWindowPolicy
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