pub struct LimiterConfig {
pub enabled: bool,
pub min_concurrency: usize,
pub max_concurrency: usize,
pub window_ops: usize,
pub min_window_ops: usize,
pub success_target: f64,
pub timeout_ceiling: f64,
pub latency_inflation_factor: f64,
pub latency_ewma_alpha: f64,
}Expand description
Per-limiter configuration. Carries the shared adaptive parameters
plus the channel-specific max_concurrency. Held behind an Arc
so cloning a Limiter is a refcount bump rather than a struct copy
(avoids allocating AdaptiveConfig-worth of bytes per chunk in
hot loops).
Fields§
§enabled: bool§min_concurrency: usize§max_concurrency: usize§window_ops: usize§min_window_ops: usize§success_target: f64§timeout_ceiling: f64§latency_inflation_factor: f64§latency_ewma_alpha: f64Trait Implementations§
Source§impl Clone for LimiterConfig
impl Clone for LimiterConfig
Source§fn clone(&self) -> LimiterConfig
fn clone(&self) -> LimiterConfig
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 LimiterConfig
impl RefUnwindSafe for LimiterConfig
impl Send for LimiterConfig
impl Sync for LimiterConfig
impl Unpin for LimiterConfig
impl UnsafeUnpin for LimiterConfig
impl UnwindSafe for LimiterConfig
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more