pub enum SlidingWindowType {
CountBased,
TimeBased,
}Expand description
Type of sliding window used for tracking calls.
Variants§
CountBased
Count-based window tracks the last N calls.
TimeBased
Time-based window tracks calls within a time duration.
Trait Implementations§
Source§impl Clone for SlidingWindowType
impl Clone for SlidingWindowType
Source§fn clone(&self) -> SlidingWindowType
fn clone(&self) -> SlidingWindowType
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 SlidingWindowType
impl Debug for SlidingWindowType
Source§impl PartialEq for SlidingWindowType
impl PartialEq for SlidingWindowType
impl Copy for SlidingWindowType
impl Eq for SlidingWindowType
impl StructuralPartialEq for SlidingWindowType
Auto Trait Implementations§
impl Freeze for SlidingWindowType
impl RefUnwindSafe for SlidingWindowType
impl Send for SlidingWindowType
impl Sync for SlidingWindowType
impl Unpin for SlidingWindowType
impl UnwindSafe for SlidingWindowType
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