Skip to content

Mutable Context #1

@Jayshua

Description

@Jayshua

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions