pub struct ThrottleStoreRecord {
pub count: u64,
pub retry_after: Duration,
}Expand description
Request throttling primitives. The result of an atomic store increment.
Fields§
§count: u64Count after the increment.
retry_after: DurationTime remaining in the current window.
Trait Implementations§
Source§impl Clone for ThrottleStoreRecord
impl Clone for ThrottleStoreRecord
Source§fn clone(&self) -> ThrottleStoreRecord
fn clone(&self) -> ThrottleStoreRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ThrottleStoreRecord
Auto Trait Implementations§
impl Freeze for ThrottleStoreRecord
impl RefUnwindSafe for ThrottleStoreRecord
impl Send for ThrottleStoreRecord
impl Sync for ThrottleStoreRecord
impl Unpin for ThrottleStoreRecord
impl UnsafeUnpin for ThrottleStoreRecord
impl UnwindSafe for ThrottleStoreRecord
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