pub struct FlowControlConfig {Show 13 fields
pub input_soft_cap_bytes: u32,
pub input_hard_cap_bytes: u32,
pub output_soft_cap_bytes: u32,
pub output_hard_cap_bytes: u32,
pub fairness_floor: f64,
pub key_latency_budget_ms: f64,
pub output_batch_with_input_bytes: u32,
pub output_batch_idle_bytes: u32,
pub output_batch_recovery_bytes: u32,
pub replenish_interval_ms: u64,
pub hard_cap_terminate_ms: u64,
pub terminate_throughput_loss: f64,
pub weights: LossWeights,
}Expand description
Runtime policy configuration for flow control decisions.
Fields§
§input_soft_cap_bytes: u32Input queue soft cap.
input_hard_cap_bytes: u32Input queue hard cap.
output_soft_cap_bytes: u32Output queue soft cap.
output_hard_cap_bytes: u32Output queue hard cap.
fairness_floor: f64Fairness lower bound (Jain index).
key_latency_budget_ms: f64Keystroke p95 latency budget.
output_batch_with_input_bytes: u32Output batch when input queue is non-empty.
output_batch_idle_bytes: u32Output batch when input queue is empty.
output_batch_recovery_bytes: u32Output batch while recovering fairness/latency.
replenish_interval_ms: u64Trigger window-based replenish at this elapsed interval.
hard_cap_terminate_ms: u64Terminate if output queue stays at hard cap longer than this.
terminate_throughput_loss: f64Cost assigned to hard disconnect (terminate_session).
weights: LossWeightsLoss function weights.
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 PartialEq for FlowControlConfig
impl PartialEq for FlowControlConfig
impl Copy for FlowControlConfig
impl StructuralPartialEq for FlowControlConfig
Auto Trait Implementations§
impl Freeze for FlowControlConfig
impl RefUnwindSafe for FlowControlConfig
impl Send for FlowControlConfig
impl Sync for FlowControlConfig
impl Unpin 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