pub async fn run_bandwidth_test<F, Fut>(
client: Client,
server: &Server,
test_label: &str,
is_verbose: bool,
test_fn: F,
) -> Result<TestRunResult, Error>Expand description
Run a bandwidth test with latency-under-load monitoring.
This is a template method that handles:
- Progress bar setup
- Background latency monitoring
- Test execution via the provided closure
- Result aggregation
§Arguments
client- HTTP client to reuseserver- Server to test againsttest_label- Label for progress displayis_verbose- Whether to show visible progresstest_fn- Async closure that runs the actual bandwidth test
§Errors
Returns Error if the test fails.