pub struct BackpressureConfig {
pub queue_depth_warning: usize,
pub queue_depth_critical: usize,
pub memory_warning_pct: u8,
pub memory_critical_pct: u8,
pub pending_io_warning: usize,
pub pending_io_critical: usize,
pub sample_interval: Duration,
}Expand description
Thresholds for backpressure activation
Fields§
§queue_depth_warning: usizeQueue depth threshold to start applying backpressure
queue_depth_critical: usizeQueue depth threshold for critical backpressure
memory_warning_pct: u8Memory usage percentage to start backpressure (0-100)
memory_critical_pct: u8Memory usage percentage for critical backpressure (0-100)
pending_io_warning: usizePending I/O operations threshold
pending_io_critical: usizePending I/O operations critical threshold
sample_interval: DurationSampling interval for metrics
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 · 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
Auto Trait Implementations§
impl Freeze for BackpressureConfig
impl RefUnwindSafe for BackpressureConfig
impl Send for BackpressureConfig
impl Sync for BackpressureConfig
impl Unpin 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