command

Attribute Macro command 

Source
#[command]
Expand description

Marks a function as a Wry IPC command. The function can take zero or one argument implementing Deserialize and return a type implementing Serialize. If omitted, no args or no return are supported. Use #[command(name = "...")] or just #[command].