#[non_exhaustive]pub struct BackpressureSection {
pub max_inflight_bytes: ByteSize,
pub high_ratio: f64,
pub low_ratio: f64,
pub min_pause: Duration,
}Expand description
In-flight budget and hysteresis (backpressure:).
Construct with BackpressureSection::default and set the fields. The
struct is #[non_exhaustive] so new knobs can be added without breaking
callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_inflight_bytes: ByteSizeGlobal cap on bytes admitted into the pipeline but not yet durably written.
high_ratio: f64Fraction of the budget at which sources are paused.
low_ratio: f64Fraction of the budget below which sources may resume.
min_pause: DurationMinimum pause duration before resuming (avoids flapping; pausing a Kafka partition purges its prefetch, so resume is not free).
Trait Implementations§
Source§impl Debug for BackpressureSection
impl Debug for BackpressureSection
Source§impl Default for BackpressureSection
impl Default for BackpressureSection
Source§impl<'de> Deserialize<'de> for BackpressureSectionwhere
BackpressureSection: Default,
impl<'de> Deserialize<'de> for BackpressureSectionwhere
BackpressureSection: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BackpressureSection
impl PartialEq for BackpressureSection
impl StructuralPartialEq for BackpressureSection
Auto Trait Implementations§
impl Freeze for BackpressureSection
impl RefUnwindSafe for BackpressureSection
impl Send for BackpressureSection
impl Sync for BackpressureSection
impl Unpin for BackpressureSection
impl UnsafeUnpin for BackpressureSection
impl UnwindSafe for BackpressureSection
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