pub struct RateLimitLayer { /* private fields */ }Expand description
Rate limiting layer
Implementations§
Source§impl RateLimitLayer
impl RateLimitLayer
pub fn new() -> Self
pub fn with_config(config: RateLimitConfig) -> Self
Trait Implementations§
Source§impl Clone for RateLimitLayer
impl Clone for RateLimitLayer
Source§fn clone(&self) -> RateLimitLayer
fn clone(&self) -> RateLimitLayer
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 Default for RateLimitLayer
impl Default for RateLimitLayer
Auto Trait Implementations§
impl Freeze for RateLimitLayer
impl !RefUnwindSafe for RateLimitLayer
impl Send for RateLimitLayer
impl Sync for RateLimitLayer
impl Unpin for RateLimitLayer
impl !UnwindSafe for RateLimitLayer
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