pub struct Pace {
pub slow_below: f64,
pub max_wait: Duration,
}Expand description
When and how long the client slows down.
Fields§
§slow_below: f64Below this share of the limit left, calls are spread over what remains of the window.
max_wait: DurationThe longest a call waits (an hour’s window is not waited for).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pace
impl RefUnwindSafe for Pace
impl Send for Pace
impl Sync for Pace
impl Unpin for Pace
impl UnsafeUnpin for Pace
impl UnwindSafe for Pace
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