pub struct RateLimitCaps {
pub max_keys: usize,
pub idle_ttl: Duration,
pub sweep_period: Duration,
}Expand description
Caps on the per-key bucket map.
Fields§
§max_keys: usize§idle_ttl: Duration§sweep_period: DurationTrait Implementations§
Source§impl Clone for RateLimitCaps
impl Clone for RateLimitCaps
impl Copy for RateLimitCaps
Source§impl Debug for RateLimitCaps
impl Debug for RateLimitCaps
Source§impl Default for RateLimitCaps
impl Default for RateLimitCaps
Source§impl From<CapsConfig> for RateLimitCaps
impl From<CapsConfig> for RateLimitCaps
Source§fn from(config: CapsConfig) -> Self
fn from(config: CapsConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RateLimitCaps
impl RefUnwindSafe for RateLimitCaps
impl Send for RateLimitCaps
impl Sync for RateLimitCaps
impl Unpin for RateLimitCaps
impl UnsafeUnpin for RateLimitCaps
impl UnwindSafe for RateLimitCaps
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