Skip to content
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

impl tokio::io::AsyncRead/Write for RequestStream? #111

Open
doraneko94 opened this issue Aug 5, 2022 · 1 comment
Open

impl tokio::io::AsyncRead/Write for RequestStream? #111

doraneko94 opened this issue Aug 5, 2022 · 1 comment

Comments

@doraneko94
Copy link

doraneko94 commented Aug 5, 2022

I wanted to use tokio::io::copy against RequestStream, but it does not seem to implement tokio::io::AsyncRead and tokio::io::AsyncWrite.
Do you intend to implement these in the future?
If you intend to do so, I can attempt to fix them. Then, do you have any implementation policies or tips?

@seanmonstar
Copy link
Member

Most likely not. A request stream can send other frames besides just data. It shouldn't be too complicated to make an adapter outside of the crate, though.

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

No branches or pull requests

2 participants