[][src]Attribute Macro spaad::handler

#[handler]

This marks a function as a handler for a type of message, exposing it to external callers.

Usage

This example is not tested
#[spaad::handler]
async fn do_something() {/* ... */}