-
Notifications
You must be signed in to change notification settings - Fork 158
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
Wrapping std::io::{Read, Write} #22
Comments
Hmm, I think I'd like to see at least one other use case of this adapter to consider it worth including :) This also seems like something that could be put into some kind of async utils crate, which |
Fair enough
That might make more sense, yes |
There's also something like this in async-tungstenite, I believe it would be quite useful to have somewhere in a separate crate (there's async-stdio with something like this btw, but seems unmaintained and outdated) or even better as part of this (IMHO it fits the For async-tungstenite there's a little problem though that the |
This also reminds me of |
Closing this issue - I think this should ideally live in some other crate. |
Currently
Async
supports wrapping things that can be converted pollable resources. Inasync-native-tls
there is an adapter transforming a resource taht is onlystd::io{Read|Write}
intoAsyncRead|Write
.I wonder if this could be improved on, cleaned up and possibly put into here, allowing resources that are not pollable, to be wrapped easily.
Ref: https://github.com/async-email/async-native-tls/blob/master/src/std_adapter.rs
The text was updated successfully, but these errors were encountered: