You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lib.rs
    path of file: ./repos/embassy/tests/perf-client/src
    
    the code of the file until where you have to start completion: #![no_std]

use defmt::{assert, *};
use embassy_futures::join::join;
use embassy_net::driver::Driver;
use embassy_net::tcp::TcpSocket;
use embassy_net::{Ipv4Address, Stack};
use embassy_time::{with_timeout, Duration, Timer};

pub struct Expected {
    pub down_kbps: 
    
pub async fn run<D: Driver>(stack: &Stack<D>, expected: Expected) {
    info!("Waiting for DHCP up...");
    while stack.config_v4().is_none() {
        Timer::after_millis(100).await;
    }
    info!("IP addressing up!");

    let down = test_download(stack).await;
    let up = test_upload(stack).await;
    let updown = test_upload_download(stack).await;

    assert!(down > expected.down_kbps);
    assert!(up > expected.up_kbps);
    assert!(updown > expected.updown_kbps);
}