Mutable Context
Jayshua opened this issue · comments
Is there a good way to use a mutable context with route handlers? Something like
fn handle_home(context: &mut Context)
I would have expected the first parameter to the router
function to be totally independent of the type, whether it's reference or mut reference or value. Instead, I think it expects a value and passes it by reference to the handlers? Not absolutely positive though. I'm not very good at reading macro_rules.