pub struct FixedWindowClientInfo {
pub window_start: Instant,
pub request_count: usize,
}Expand description
Information about a client’s fixed window rate limit state
Fields§
§window_start: InstantStart of current window
request_count: usizeNumber of requests in current window
Trait Implementations§
Source§impl Clone for FixedWindowClientInfo
impl Clone for FixedWindowClientInfo
Source§fn clone(&self) -> FixedWindowClientInfo
fn clone(&self) -> FixedWindowClientInfo
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 FixedWindowClientInfo
impl RefUnwindSafe for FixedWindowClientInfo
impl Send for FixedWindowClientInfo
impl Sync for FixedWindowClientInfo
impl Unpin for FixedWindowClientInfo
impl UnwindSafe for FixedWindowClientInfo
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