pub struct FlowControlConfig {
pub max_rate: Option<f64>,
pub burst_size: usize,
pub enable_rate_limiting: bool,
pub smoothing_factor: f64,
pub target_latency: Duration,
pub adjustment_interval: Duration,
}Expand description
Configuration for flow control.
Fields§
§max_rate: Option<f64>Maximum rate (elements per second)
burst_size: usizeBurst size
enable_rate_limiting: boolEnable rate limiting
smoothing_factor: f64Smoothing factor for rate adjustment
target_latency: DurationTarget latency for adaptive control
adjustment_interval: DurationAdjustment interval
Trait Implementations§
Source§impl Clone for FlowControlConfig
impl Clone for FlowControlConfig
Source§fn clone(&self) -> FlowControlConfig
fn clone(&self) -> FlowControlConfig
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 FlowControlConfig
impl Debug for FlowControlConfig
Source§impl Default for FlowControlConfig
impl Default for FlowControlConfig
Source§impl<'de> Deserialize<'de> for FlowControlConfig
impl<'de> Deserialize<'de> for FlowControlConfig
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
Auto Trait Implementations§
impl Freeze for FlowControlConfig
impl RefUnwindSafe for FlowControlConfig
impl Send for FlowControlConfig
impl Sync for FlowControlConfig
impl Unpin for FlowControlConfig
impl UnsafeUnpin for FlowControlConfig
impl UnwindSafe for FlowControlConfig
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