Struct spawn_access_control::rate_limiter::RateLimiter
source · pub struct RateLimiter {
pub max_requests: u32,
pub window: u64,
pub requests: u32,
pub start_time: u64,
}Fields§
§max_requests: u32§window: u64§requests: u32§start_time: u64Implementations§
source§impl RateLimiter
impl RateLimiter
Trait Implementations§
source§impl Clone for RateLimiter
impl Clone for RateLimiter
source§fn clone(&self) -> RateLimiter
fn clone(&self) -> RateLimiter
Returns a copy 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 RateLimiter
impl RefUnwindSafe for RateLimiter
impl Send for RateLimiter
impl Sync for RateLimiter
impl Unpin for RateLimiter
impl UnwindSafe for RateLimiter
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)