pub struct DecayingLimitConfig {
pub max_counter: f64,
pub decay_rate_per_sec: f64,
pub default_cost: f64,
}Expand description
Decaying-counter REST limit config (Kraken Spot, Deribit credits).
Fields§
§max_counter: f64Maximum counter value before blocking.
decay_rate_per_sec: f64Units per second that decay from the counter.
default_cost: f64Default cost of a standard request.
Trait Implementations§
Source§impl Clone for DecayingLimitConfig
impl Clone for DecayingLimitConfig
Source§fn clone(&self) -> DecayingLimitConfig
fn clone(&self) -> DecayingLimitConfig
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 DecayingLimitConfig
Auto Trait Implementations§
impl Freeze for DecayingLimitConfig
impl RefUnwindSafe for DecayingLimitConfig
impl Send for DecayingLimitConfig
impl Sync for DecayingLimitConfig
impl Unpin for DecayingLimitConfig
impl UnsafeUnpin for DecayingLimitConfig
impl UnwindSafe for DecayingLimitConfig
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