Skip to main content

process_daemon_command

Function process_daemon_command 

Source
pub fn process_daemon_command(
    command: &str,
    payload: &[u8],
    enabled: bool,
    result_prefix: &str,
    poll_interval: &mut Duration,
) -> DaemonCommandOutcome
Expand description

Validate and apply a shared daemon control command.

The returned result and polling-interval update still need to be published by the application. result_prefix preserves an application’s naming convention for rejected/unsupported commands.