pub enum Window {
Second,
Minute,
Hour,
Day,
Custom(Duration),
}Expand description
Window defines the time period for rate limiting
Variants§
Second
Rate limit per second
Minute
Rate limit per minute
Hour
Rate limit per hour
Day
Rate limit per day
Custom(Duration)
Custom duration
Implementations§
Trait Implementations§
impl Copy for Window
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl Freeze for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnwindSafe for Window
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