Heh, realized today roughly how Rust's streams terminology translates to Node. AsyncRead / AsyncWrite are comparable to Node's buffer/normal streams. Stream / Sink are comparable to Node's object streams. There's not really a .pipe() / pipeline() equivalent yet.
-
Show this thread
I guess a constraint here tho is that AsyncRead / AsyncWrite can only ever return an std::io::Error. This means that for low-level utilities it's fine to operate on these types, but say gzip, should probably become a Stream<Item = Vec<u8>> or smth.
5:40 AM - 29 Mar 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.