pub struct Limits {
pub client_burst: f64,
pub client_per_hour: f64,
pub global_burst: f64,
pub global_per_hour: f64,
pub max_clients: usize,
}Expand description
Token buckets: each client may burst client_burst reports and then earns
client_per_hour, the server as a whole likewise, and max_clients bounds
what a flood of addresses can take.
Fields§
§client_burst: f64§client_per_hour: f64§global_burst: f64§global_per_hour: f64§max_clients: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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