Skip to main content

handle

Function handle 

Source
pub async fn handle(
    matches: &ArgMatches,
    grpc_client: &mut CliClient,
    worker_map: BiHashMap<u32, String>,
) -> Result<(), Box<dyn Error>>
Expand description

Handle the start command by parsing arguments and sending a measurement request to the orchestrator.

§Arguments

  • matches - The parsed command-line arguments specific to the start command.
  • grpc_client - A mutable reference to the gRPC client used to communicate with the orchestrator.
  • worker_map - A bidirectional map of worker IDs to hostnames for selective probing.

§Returns

  • Result<(), Box<dyn std::error::Error>> - Ok(()) if the measurement was successfully started, or an error if something went wrong.