proc_register_task

Attribute Macro proc_register_task 

Source
#[proc_register_task]
Expand description

Attribute macro for registering tasks with a custom name.

This is useful when you want to register a task with a specific name rather than using the name returned by the name() method.

ยงExample

#[register_task("custom_task_name")]
#[derive(Debug, Serialize, Deserialize)]
struct MyTask {
    data: String,
}