Skip to main content

run

Function run 

Source
pub async fn run(
    client: &Client,
    server: &Server,
    single: bool,
    progress: Arc<Tracker>,
) -> Result<(f64, f64, u64, Vec<f64>), Error>
Expand description

Run download bandwidth test against the given server.

Returns (avg_speed_bps, peak_speed_bps, total_bytes_downloaded, speed_samples).

ยงErrors

Returns Error::NetworkError if all download streams fail. Returns Error::Context if the server URL is invalid.