pub struct RateLimitConfig { /* private fields */ }Expand description
Token-bucket rate-limit parameters attached to a GatewayRoute.
Implementations§
Source§impl RateLimitConfig
Inherent implementation of RateLimitConfig.
impl RateLimitConfig
Inherent implementation of RateLimitConfig.
Source§impl RateLimitConfig
impl RateLimitConfig
pub fn get_requests_per_second(&self) -> u64
pub fn get_mut_requests_per_second(&mut self) -> &mut u64
pub fn set_requests_per_second(&mut self, val: u64) -> &mut Self
pub fn get_burst(&self) -> u64
pub fn get_mut_burst(&mut self) -> &mut u64
pub fn set_burst(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for RateLimitConfig
impl Clone for RateLimitConfig
impl Copy for RateLimitConfig
Source§impl Debug for RateLimitConfig
impl Debug for RateLimitConfig
impl Eq for RateLimitConfig
Source§impl PartialEq for RateLimitConfig
impl PartialEq for RateLimitConfig
impl StructuralPartialEq for RateLimitConfig
Auto Trait Implementations§
impl Forget for RateLimitConfig
impl Freeze for RateLimitConfig
impl Move for RateLimitConfig
impl RefUnwindSafe for RateLimitConfig
impl Send for RateLimitConfig
impl Sync for RateLimitConfig
impl Unpin for RateLimitConfig
impl UnsafeUnpin for RateLimitConfig
impl UnwindSafe for RateLimitConfig
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.