Struct diem_config::config::RateLimitConfig [−][src]
pub struct RateLimitConfig {
pub ip_byte_bucket_rate: usize,
pub ip_byte_bucket_size: usize,
pub initial_bucket_fill_percentage: u8,
pub enabled: bool,
}Fields
ip_byte_bucket_rate: usizeMaximum number of bytes/s for an IP
ip_byte_bucket_size: usizeMaximum burst of bytes for an IP
initial_bucket_fill_percentage: u8Initial amount of tokens initially in the bucket
enabled: boolAllow for disabling the throttles
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for RateLimitConfig
impl Send for RateLimitConfig
impl Sync for RateLimitConfig
impl Unpin for RateLimitConfig
impl UnwindSafe for RateLimitConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.