Function rusp::usp_generator::usp_operate_request [−][src]
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 executecommand_key
- The command key to use in the request to allow later matching with a resultsend_resp
- A boolean indicating whether a response is expected in reply to this requestargs
- 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, &[]);