pub struct BackpressureConfig {
pub enabled: bool,
pub max_requests_per_minute: usize,
pub strategy: BackpressureStrategy,
pub buffer_size: usize,
pub high_water_mark: usize,
pub low_water_mark: usize,
}Expand description
Backpressure configuration
Fields§
§enabled: boolWhether backpressure is enabled
max_requests_per_minute: usizeMaximum requests per minute per IP
strategy: BackpressureStrategyBackpressure strategy
buffer_size: usizeBuffer size in bytes
high_water_mark: usizeHigh water mark in bytes
low_water_mark: usizeLow water mark in bytes
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