pub struct BackpressureConfig {
pub throttle_enter: u8,
pub throttle_exit: u8,
pub suspend_enter: u8,
pub suspend_exit: u8,
}Expand description
Backpressure thresholds (percentage of queue capacity).
Fields§
§throttle_enter: u8Enter Throttled state when utilization exceeds this (default: 85%).
throttle_exit: u8Exit Throttled back to Normal when utilization drops below this (default: 75%).
suspend_enter: u8Enter Suspended state when utilization exceeds this (default: 95%).
suspend_exit: u8Exit Suspended back to Throttled when utilization drops below this (default: 85%).
Trait Implementations§
Source§impl Clone for BackpressureConfig
impl Clone for BackpressureConfig
Source§fn clone(&self) -> BackpressureConfig
fn clone(&self) -> BackpressureConfig
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 BackpressureConfig
impl Debug for BackpressureConfig
Source§impl Default for BackpressureConfig
impl Default for BackpressureConfig
impl Copy for BackpressureConfig
Auto Trait Implementations§
impl Freeze for BackpressureConfig
impl RefUnwindSafe for BackpressureConfig
impl Send for BackpressureConfig
impl Sync for BackpressureConfig
impl Unpin for BackpressureConfig
impl UnsafeUnpin for BackpressureConfig
impl UnwindSafe for BackpressureConfig
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