pub struct ProviderLimits {
pub concurrency: usize,
pub reserved_control_concurrency: usize,
pub tenant_concurrency: usize,
pub failure_threshold: u32,
pub recovery_after: Duration,
pub max_elapsed: Duration,
pub initial_backoff: Duration,
pub max_backoff: Duration,
}Expand description
Bulkhead, circuit-breaker and backoff limits of a provider.
Fields§
§concurrency: usizeTotal concurrent calls.
reserved_control_concurrency: usizeSlots kept for control-priority work.
tenant_concurrency: usizeConcurrent calls per tenant.
failure_threshold: u32Consecutive failures that open the circuit.
recovery_after: DurationOpen duration before a probe.
max_elapsed: DurationPer-call deadline.
initial_backoff: DurationFirst backoff.
max_backoff: DurationBackoff cap.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderLimits
impl Clone for ProviderLimits
Source§fn clone(&self) -> ProviderLimits
fn clone(&self) -> ProviderLimits
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 moreSource§impl Debug for ProviderLimits
impl Debug for ProviderLimits
impl Eq for ProviderLimits
Source§impl PartialEq for ProviderLimits
impl PartialEq for ProviderLimits
impl StructuralPartialEq for ProviderLimits
Auto Trait Implementations§
impl Freeze for ProviderLimits
impl RefUnwindSafe for ProviderLimits
impl Send for ProviderLimits
impl Sync for ProviderLimits
impl Unpin for ProviderLimits
impl UnsafeUnpin for ProviderLimits
impl UnwindSafe for ProviderLimits
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