We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tonic::Request#into_parts()
Would It be possible to expose tonic::Request#into_parts() to get ownership on Metadata without additional cloning?
Metadata
tonic
Avoid copying Metadata when ownership is needed
Change visibility of tonic::Request#into_parts() to pub.
pub
At the moment my solution just involves copying all the Metadata map
The text was updated successfully, but these errors were encountered:
Yeah, I am open to this idea. I would accept a PR for it.
Sorry, something went wrong.
Request#into_parts
Request#from_parts
I opened a PR here: #1118
Successfully merging a pull request may close this issue.
Feature Request
Would It be possible to expose
tonic::Request#into_parts()
to get ownership onMetadata
without additional cloning?Crates
tonic
Motivation
Avoid copying
Metadata
when ownership is neededProposal
Change visibility of
tonic::Request#into_parts()
topub
.Alternatives
At the moment my solution just involves copying all the
Metadata
mapThe text was updated successfully, but these errors were encountered: