#[ta_invoke_command]
Expand description

Attribute to declare the entry point of invoking commands. Session context reference (&mut T) can be defined as an optional parameter.

Examples

#[ta_invoke_command]
fn invoke_command(sess_ctx: &mut T, cmd_id: u32, params: &mut Parameters) -> Result<()> { }

#[ta_invoke_command]
fn invoke_command(cmd_id: u32, params: &mut Parameters) -> Result<()> { }