pub struct FlowControlSnapshot {
pub queues: QueueDepthBytes,
pub rates: RateWindowBps,
pub latency: LatencyWindowMs,
pub serviced_input_bytes: u64,
pub serviced_output_bytes: u64,
pub output_hard_cap_duration_ms: u64,
}Expand description
Deterministic snapshot consumed by the policy evaluator.
Fields§
§queues: QueueDepthBytesCurrent queue depths.
rates: RateWindowBpsSliding-window rates.
latency: LatencyWindowMsSliding-window latency summary.
serviced_input_bytes: u64Bytes serviced from input lane in the fairness window.
serviced_output_bytes: u64Bytes serviced from output lane in the fairness window.
output_hard_cap_duration_ms: u64How long output queue has continuously stayed at hard cap.
Implementations§
Source§impl FlowControlSnapshot
impl FlowControlSnapshot
Sourcepub fn fairness_index(self) -> f64
pub fn fairness_index(self) -> f64
Jain fairness index over serviced input/output bytes in this window.
Trait Implementations§
Source§impl Clone for FlowControlSnapshot
impl Clone for FlowControlSnapshot
Source§fn clone(&self) -> FlowControlSnapshot
fn clone(&self) -> FlowControlSnapshot
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 FlowControlSnapshot
impl Debug for FlowControlSnapshot
Source§impl PartialEq for FlowControlSnapshot
impl PartialEq for FlowControlSnapshot
impl Copy for FlowControlSnapshot
impl StructuralPartialEq for FlowControlSnapshot
Auto Trait Implementations§
impl Freeze for FlowControlSnapshot
impl RefUnwindSafe for FlowControlSnapshot
impl Send for FlowControlSnapshot
impl Sync for FlowControlSnapshot
impl Unpin for FlowControlSnapshot
impl UnwindSafe for FlowControlSnapshot
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