Attribute Macro process

Source
#[process]
Expand description

Attribute macro that creates an additional version of a function that executes in a separate process.

When applied to a function named foo, this macro:

  1. Keeps the original function unchanged, allowing normal in-process calls
  2. Creates a new function named foo_process that returns a ProcessWrapper

ยงRequirements

The function must:

  • Have arguments and return type that implement Serialize and Deserialize