Skip to main content

TestMetrics

Trait TestMetrics 

Source
pub trait TestMetrics: Send + Sync {
    // Required methods
    fn avg_bps(&self) -> f64;
    fn peak_bps(&self) -> f64;
    fn total_bytes(&self) -> u64;
    fn duration_secs(&self) -> f64;
    fn speed_samples(&self) -> &[f64];
    fn latency_under_load(&self) -> Option<f64>;
}
Expand description

Trait for bandwidth test results - enables dependency injection and mocking.

Required Methods§

Source

fn avg_bps(&self) -> f64

Source

fn peak_bps(&self) -> f64

Source

fn total_bytes(&self) -> u64

Source

fn duration_secs(&self) -> f64

Source

fn speed_samples(&self) -> &[f64]

Source

fn latency_under_load(&self) -> Option<f64>

Implementors§