-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Reflect the half-duplex nature of pipes in their types #19382
New issue
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @huonw (or someone else) soon. |
Nice use of the type system! I wonder if we could call the I think @aturon and/or @alexcrichton may have some thoughts about this. |
Thanks! I tried using
have to be
which means
but for issue #11047. There are a few other ways we could avoid that empty struct. First, we could make it a module, but then rustc warns, "module Second, we could promote the functions to the top level of the module (possibly renaming them to disambiguate them from other Third, Thoughts? |
@jbapple thanks for taking a look at these apis! They're definitely sorely in need of a redesign. The API proposed here leaves me with many questions, and we may want to hold off this work to get a more holistic view of the entire
Would you be ok holding off this work for now? The |
Yes, I don't see any need to rush into anything. While big |
This produces more code in the implementation, but a cleaner API.
This most recent change addresses the previous concerns as follows:
|
Closing for reasons stated here (RFC coming soon) |
No description provided.