pub enum BackpressureLevel {
None,
Light,
Moderate,
Heavy,
Critical,
}Expand description
Current backpressure level
Variants§
None
No backpressure - operate normally
Light
Light backpressure - slow down non-critical work
Moderate
Moderate backpressure - reduce throughput
Heavy
Heavy backpressure - only critical operations
Critical
Critical - reject new work
Implementations§
Source§impl BackpressureLevel
impl BackpressureLevel
Sourcepub fn delay_multiplier(&self) -> f64
pub fn delay_multiplier(&self) -> f64
Get a delay multiplier for rate limiting (1.0 = no delay)
Sourcepub fn accepts_work(&self) -> bool
pub fn accepts_work(&self) -> bool
Check if new work should be accepted
Sourcepub fn allows_background_work(&self) -> bool
pub fn allows_background_work(&self) -> bool
Check if background work should proceed
Trait Implementations§
Source§impl Clone for BackpressureLevel
impl Clone for BackpressureLevel
Source§fn clone(&self) -> BackpressureLevel
fn clone(&self) -> BackpressureLevel
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 BackpressureLevel
impl Debug for BackpressureLevel
Source§impl PartialEq for BackpressureLevel
impl PartialEq for BackpressureLevel
impl Copy for BackpressureLevel
impl Eq for BackpressureLevel
impl StructuralPartialEq for BackpressureLevel
Auto Trait Implementations§
impl Freeze for BackpressureLevel
impl RefUnwindSafe for BackpressureLevel
impl Send for BackpressureLevel
impl Sync for BackpressureLevel
impl Unpin for BackpressureLevel
impl UnwindSafe for BackpressureLevel
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