Attribute Macro salvo_macros::handler
source · #[handler]
Expand description
handler
is a macro to help create Handler
from function or impl block easily.
Handler
is a trait, if #[handler]
applied to fn
, fn
will converted to a struct, and then implement Handler
,
after use handler
, you don’t need to care arguments’ order, omit unused arguments.
View salvo_core::handler
for more details.