pub struct IpThrottleTracker { /* private fields */ }Expand description
Request throttling primitives. Tracks clients by IP, with explicit trusted-proxy support.
Implementations§
Source§impl IpThrottleTracker
impl IpThrottleTracker
Sourcepub fn with_trusted_proxies<I, S>(proxies: I) -> Result<Self>
pub fn with_trusted_proxies<I, S>(proxies: I) -> Result<Self>
Creates a tracker with trusted proxy IP addresses or CIDR ranges.
Trait Implementations§
Source§impl Default for IpThrottleTracker
impl Default for IpThrottleTracker
Source§impl ThrottleTracker for IpThrottleTracker
impl ThrottleTracker for IpThrottleTracker
Auto Trait Implementations§
impl Freeze for IpThrottleTracker
impl RefUnwindSafe for IpThrottleTracker
impl Send for IpThrottleTracker
impl Sync for IpThrottleTracker
impl Unpin for IpThrottleTracker
impl UnsafeUnpin for IpThrottleTracker
impl UnwindSafe for IpThrottleTracker
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