Returning a Reader ends up with a really weird user experience where you have to make sure to drop it before making any other calls and it has to internally fast forward to the end of the data even if the user drops it early. Simply taking a Writer that all data is pushed into is sigificantly more straightforward. |
||
---|---|---|
.. | ||
types | ||
test.rs |