pub trait MeasurementEngine {
// Required method
fn measure(&self, server: &Server) -> Result<Measurement, Error>;
}Expand description
Runs latency, download, upload, and optional packet-loss measurement against a Server.
A single call performs the full probe for that backend (ping/jitter plus throughput tests).
Implement this trait to add new measurement protocols alongside
LibreSpeedEngine and Iperf3Engine.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".