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

Provide a read_to_string method on AsyncReadExt for Read parity #1715

Closed
sagebind opened this issue Jul 5, 2019 · 2 comments · Fixed by #1721
Closed

Provide a read_to_string method on AsyncReadExt for Read parity #1715

sagebind opened this issue Jul 5, 2019 · 2 comments · Fixed by #1721

Comments

@sagebind
Copy link

sagebind commented Jul 5, 2019

It would be really handy to provide a read_to_string() method on AsyncReadExt similar to the one provided by Read instead of implementing this myself in my own crates.

@yoshuawuyts
Copy link
Member

Reference: std::io::Read::read_to_string

@taiki-e
Copy link
Member

taiki-e commented Jul 7, 2019

(By the way, the current AsyncReadExt::read_to_end, unlike std::io::Read::{read_to_end, read_to_string}, does not return the total number of bytes read.)

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 a pull request may close this issue.

3 participants