[][src]Function rusp::usp_generator::usp_operate_request

pub fn usp_operate_request<'a, V: AsRef<[(&'a str, &'a str)]>>(
    command: &'a str,
    command_key: &'a str,
    send_resp: bool,
    args: V
) -> Body<'a>

Generates a body of a USP Msg with a USP Operate request

Arguments

  • command - The full pathname of of the command to execute
  • command_key - The command key to use in the request to allow later matching with a result
  • send_resp - A boolean indicating whether a response is expected in reply to this request
  • args - An array of tuples containing the command input arguments with path names and values

Example

use rusp::usp_generator::usp_operate_request;
let req = usp_operate_request("Device.Reboot()", "acommandkey", true, &[]);