Closed jean-airoldie closed 3 months ago
The same logic applies to RecvStream
, where polling is only possible via AsyncRead
methods which are undesirable because of the std::io::Error
, as well as poll_read_chunk
which is simply not accessible.
Since
SendStream
methods no longer return a named future, the only current way of doing polling is viafutures_io::AsyncWrite
ortokio::io::AsyncWrite
. I would like to be able to callpoll_write
andpoll_close
without any of these libraries features and without needing to use astd::io::Error
which can be undesirable.