You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@MOZGIII are you trying to adapt between tokio 0.1's Async{Read, Write} traits and tokio 0.2's? I'd definitely like to add this to tokio-compat; thanks for opening the issue.
In the meantime, a potential workaround is to use futures 0.3's io compat layer to turn tokio 0.1 AsyncRead and AsyncWrite into futures 0.3's versions, and then use tokio-util's compat module to convert the futures 0.3 AsyncRead/AsyncWrite traits into tokio 0.2's versions.
Of course, this is not ideal, and we should definitely provide a one-step compat layer here, but it'll work in the short term.
I need a compat layer for
io::AsyncWrite
andio::AsyncRead
. Can you add it?The text was updated successfully, but these errors were encountered: