pub struct FlowControlMetrics {
pub current_rate: f64,
pub target_rate: Option<f64>,
pub throttled_count: u64,
pub total_delay_ms: u64,
pub avg_latency: Duration,
}Expand description
Metrics for flow control.
Fields§
§current_rate: f64Current rate (elements per second)
target_rate: Option<f64>Target rate (elements per second)
throttled_count: u64Number of throttled operations
total_delay_ms: u64Total delay introduced (milliseconds)
avg_latency: DurationAverage processing latency
Trait Implementations§
Source§impl Clone for FlowControlMetrics
impl Clone for FlowControlMetrics
Source§fn clone(&self) -> FlowControlMetrics
fn clone(&self) -> FlowControlMetrics
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 FlowControlMetrics
impl Debug for FlowControlMetrics
Source§impl Default for FlowControlMetrics
impl Default for FlowControlMetrics
Source§fn default() -> FlowControlMetrics
fn default() -> FlowControlMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlowControlMetrics
impl RefUnwindSafe for FlowControlMetrics
impl Send for FlowControlMetrics
impl Sync for FlowControlMetrics
impl Unpin for FlowControlMetrics
impl UnsafeUnpin for FlowControlMetrics
impl UnwindSafe for FlowControlMetrics
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