RFC 0028: Nested Wire Envelope: Trait, Method, Version, and Direction - #557
Open
decrypto21 wants to merge 5 commits into
Open
RFC 0028: Nested Wire Envelope: Trait, Method, Version, and Direction#557decrypto21 wants to merge 5 commits into
decrypto21 wants to merge 5 commits into
Conversation
This was referenced Sep 1, 2026
decrypto21
force-pushed
the
rfc/0028-nested-wire-envelope
branch
from
September 2, 2026 10:14
76ede58 to
d4078ff
Compare
johnthecat
reviewed
Sep 2, 2026
| Start(Start), | ||
| Stop, | ||
| Interrupt(Option<Err>), | ||
| Receive(Item), |
Contributor
There was a problem hiding this comment.
I think Receive should be after Start
pub enum Subscription<Start, Item, Err> {
Start(Start),
Receive(Item),
Interrupt(Option<Err>),
Stop,
}So subscriptions can be partly backward compatible with request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the design proposal for folding wire direction (request/response, or a subscription's start/stop/interrupt/receive) and version into the payload itself, so each method costs one wire id instead of two or four. Registers it in docs/rfcs/_index.md.
Implemented directly in #357 rather than a separate PR: neither has merged, and the nested envelope isn't separable from that PR's own wire redesign, same unreleased codec 2 cutover.