Expand description
Macros for use with Tokio
Attribute Macrosยง
- main
- Marks async function to be executed by the selected runtime. This macro
helps set up a
Runtime
without requiring the user to use Runtime or Builder directly. - main_
fail - Always fails with the error message below.
- main_rt
- Marks async function to be executed by selected runtime. This macro helps set up a
Runtime
without requiring the user to use Runtime or Builder directly. - test
- Marks async function to be executed by runtime, suitable to test environment.
This macro helps set up a
Runtime
without requiring the user to use Runtime or Builder directly. - test_
fail - Always fails with the error message below.
- test_rt
- Marks async function to be executed by runtime, suitable to test environment