Skip to content

Support generics in Context #119

@xobs

Description

@xobs

I have a dispatcher that I would like to be able to accept generics. In this particular instance I actually need three generics.

It would be nice if the Context could support generics, however I'm not sure how gnarly that would make the macro.

My workaround for now is to have the Context contain a Box<dyn MyInterface + Send> which does the trick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Q2 '25 TriageItems tracked as part of https://github.com/jamesmunns/postcard/issues/241

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions