Attribute Macro telexide::macros::prepare_listener[][src]

#[prepare_listener]

A function attribute macro for making event listeners easier.

This macro transforms an async function into a function returning a pinned box containing a future, which is used internally by telexide to store the function.