pub struct RateClassConfig {
pub name: String,
pub limit: i64,
pub window_ms: i64,
pub burst: i64,
pub paused: bool,
}Fields§
§name: String§limit: i64§window_ms: i64§burst: i64§paused: boolInvariant 16: the kill switch. Admit nothing in this class until unpaused.
Trait Implementations§
Source§impl Clone for RateClassConfig
impl Clone for RateClassConfig
Source§fn clone(&self) -> RateClassConfig
fn clone(&self) -> RateClassConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RateClassConfig
impl RefUnwindSafe for RateClassConfig
impl Send for RateClassConfig
impl Sync for RateClassConfig
impl Unpin for RateClassConfig
impl UnsafeUnpin for RateClassConfig
impl UnwindSafe for RateClassConfig
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