pub struct RequestRate {
pub requests: usize,
pub seconds: usize,
}
Expand description
The model of limiting the frequency of requests to the server.
It’s set by the Request-Rate
directive.
§Example
For the directive Request-Rate: 1/5
is equivalent to the model RequestRate {requests: 1, seconds: 5}
Fields§
§requests: usize
§seconds: usize
Trait Implementations§
Source§impl Clone for RequestRate
impl Clone for RequestRate
Source§fn clone(&self) -> RequestRate
fn clone(&self) -> RequestRate
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 moreAuto Trait Implementations§
impl Freeze for RequestRate
impl RefUnwindSafe for RequestRate
impl Send for RequestRate
impl Sync for RequestRate
impl Unpin for RequestRate
impl UnwindSafe for RequestRate
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