Skip to main content

validate_command

Function validate_command 

Source
pub fn validate_command(cmd: &IpcCommand) -> Result<(), String>
Expand description

Validates an IPC command before the daemon acts on it. Returns Ok(()) when the command is well-formed, or a human-readable reason when it must be rejected. This runs before any filesystem, GPU, or theme work.