-
Notifications
You must be signed in to change notification settings - Fork 88
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
AsyncRead, AsyncWrite traits #23
Comments
These re-export the versions in These traits are a fair bit harder to implement than the normal std versions of |
@ids1024 In principle that same complaint could be targeted at the |
Seems to me that
While we still don't have GAT, pretty sure we wouldn't want to require boxing at this level of the stack. Also, implementing these traits will be relatively rare IMO. |
it shouldn't probably be difficult to integrate both io traits once rust-lang/rust#69941 and rust-lang/rust#78485 are stable. AFAIK, they should be sufficient to meet the requirements that tokio requires for async io trait. And, futures tend not to actively add features that are not stable in the standard library. related: rust-lang/futures-rs#2209, rust-lang/futures-rs#1826, rust-lang/futures-rs#1761 |
It would also be great if this didn't require There was a conversation in While I am sympathetic to the view that standard io libraries tend to be highly dependent on an operating system in order to avoid implementation hell maybe we can give some thought to the idea that io abstractions such as |
@antoinevg As for no_std, I don't think the situation has changed since the previous decision in rust-lang/futures-rs#860. |
There is progress being made on moving the Error trait into core: rust-lang/project-error-handling#3 |
Closing in favor of nrc/portable-interoperable#5. |
We need an async form of the Read and Write traits.
There are multiple versions of this in the ecosystem:
futures: AsyncRead, AsyncWrite
tokio: AsyncRead, AsyncWrite
async_std: Read, Write
Relevant design decisions:
ReadBuf
(Tracking Issue for RFC 2930 (read-buf) rust#78485), should we include a method without it likeRead
hasThe text was updated successfully, but these errors were encountered: