pub struct BackpressureSection {
pub max_inflight_bytes: ByteSize,
pub high_ratio: f64,
pub low_ratio: f64,
pub min_pause: Duration,
}Expand description
backpressure: — in-flight budget and hysteresis.
Fields§
§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§fn default() -> BackpressureSection
fn default() -> BackpressureSection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackpressureSectionwhere
BackpressureSection: Default,
impl<'de> Deserialize<'de> for BackpressureSectionwhere
BackpressureSection: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BackpressureSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BackpressureSection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BackpressureSection
impl PartialEq for BackpressureSection
Source§fn eq(&self, other: &BackpressureSection) -> bool
fn eq(&self, other: &BackpressureSection) -> bool
Tests for
self and other values to be equal, and is used by ==.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§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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