Skip to content

Conversation

@Frando
Copy link
Member

@Frando Frando commented Jul 21, 2025

This adds a MessageWithChannels trait that can be implemented on the XxxMessage types (the enums where the variants are WithChannels). The trait has a from_wire message that creates the XxxMessage from the XxxProtocol plus the quinn streams.

The trait can be auto-impl'd via the proc macro. With this, the tedious "match on msg to forward to a local sender" or "match on msg to create the with channels struct" is not needed anymore in all typical cases.

First and foremost have a look at the diffs to the examples.

The first commit aligns the non-iroh quinn rpc to the structure added in #14. Can split out to a separate PR.

@Frando
Copy link
Member Author

Frando commented Jul 21, 2025

Closing in favor of #46

@Frando Frando closed this Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants