Closed toxeus closed 1 year ago
The tokio_stream::StreamExt
trait does not need to be implemented explicitly, it is implied for anything that implements Stream
:
impl<St> StreamExt for St
where
St: Stream + ?Sized,
so tokio-tungstenite
has nothing to do with its implementation. It's implemented by tokio_stream
. I wonder why it doesn't work for you.
I'm a bit surprised that
tokio-tungstenite
doesn't implementtokio_stream::StreamExt
butfutures::stream::StreamExt
. I think it wouldn't hurt to also implement the former for greater developer convenience.