pub struct FlowControlDecision {
pub chosen_action: Option<BackpressureAction>,
pub reason: DecisionReason,
pub fairness_index: f64,
pub output_batch_budget_bytes: u32,
pub should_pause_pty_reads: bool,
pub losses: [ActionLoss; 4],
}Expand description
Evaluated policy decision.
Fields§
§chosen_action: Option<BackpressureAction>Selected action; None means maintain current behavior.
reason: DecisionReasonDeterministic reason code for the decision.
fairness_index: f64Jain fairness index for the current decision window.
output_batch_budget_bytes: u32Output-service budget to apply this loop.
should_pause_pty_reads: boolWhether PTY reads should be paused due output hard-cap.
losses: [ActionLoss; 4]Loss estimates for all candidate actions.
Trait Implementations§
Source§impl Clone for FlowControlDecision
impl Clone for FlowControlDecision
Source§fn clone(&self) -> FlowControlDecision
fn clone(&self) -> FlowControlDecision
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 FlowControlDecision
impl Debug for FlowControlDecision
Source§impl PartialEq for FlowControlDecision
impl PartialEq for FlowControlDecision
impl Copy for FlowControlDecision
impl StructuralPartialEq for FlowControlDecision
Auto Trait Implementations§
impl Freeze for FlowControlDecision
impl RefUnwindSafe for FlowControlDecision
impl Send for FlowControlDecision
impl Sync for FlowControlDecision
impl Unpin for FlowControlDecision
impl UnwindSafe for FlowControlDecision
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