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: test_context_applied.rs
    path of file: ./repos/iggy/integration/tests/cli/context
    
    the code of the file until where you have to start completion: use std::collections::HashMap;

use assert_cmd::assert::Assert;
use async_trait::async_trait;
use iggy::{args::ArgsOptional, cli::context::common::ContextConfig, client::Client};
use integration::test_server::TestServer;
use predicates::str::{contains, starts_with};
use serial_test::parallel;

use crate::cli::c
    
    fn protocol(&self, server: &TestServer) -> Vec<String> {
        let transport = self
            .set_transport_arg
            .as_ref()
            .or(self.set_transport_context.as_ref());

        match transport {
            Some(protocol) => match protocol.as_str() {
                "quic" => vec![
                    "--quic-server-address".into(),
                    server.get_quic_udp_addr().unwrap(),
                ],
                _ => vec![
                    "--tcp-server-address".into(),
                    server.get_raw_tcp_addr().unwrap(),
                ],
            },
            None => panic!("either set_transport_arg or set_transport_context must be set"),
        }
    }